ByteTool

Current Unix Timestamp

1611343749

SECONDS SINCE 1 JAN 1970 00:00 UTC

Unix Timestamp to Date

Timestamp in

seconds

Timestamp:

1611343749

Date(UTC):

01/22/2021 19:29:09

Date(Local):

01/22/2021 20:29:09

ISO 8601:

2021-01-22T19:29:09.307Z

Unix Timestamp

A unix timestamp (or Epoch Time) describes a point in time with the amount of passed seconds since the start of the Unix epoch at the 1 January 1970 00:00:00 UTC. The unix time differs slightely from UTC time, bacause leap seconds are ignored. Some programming alnguages also use milliseconds for the offset (like JavaScript's date.getTime()) or even nanoseconds.

Due to historical reasons, the unix timestamp is stored as signed 32-bit integer (to save memory). This results in the so-called year 2038 problem, when the overflow of the timestamp will happen at the 19 January 2038. Through this overflow, the system time will be the 13 December 1901, with will cause problems in some programms. Especially vunorable are legacy embedded systems and file systems or databases with with 32-bit time fields. To solve this problem, many modern systems use a 64-bit integer for the unix timestamp, with won't overflow as long as the universe will likely exist.


Get the millisecond Unix timestamp in JavaScript:
let timestamp = Date.now();

Convert timestamp to a date in Javascript:
let date = new Date(timestamp);

Get timestamp from date in Javascript:
let tsFromDate = date.getTime();

Sources:
Wikipedia: Unix Time
Wikipedia: Year 2038 problem