Date CalculatorCalculators
Adds or subtracts a period from a date to give a new date.
Turn a Unix timestamp into a readable date in UTC or any time zone, or turn a date back into epoch time. The Unix timestamp converter detects seconds, milliseconds, microseconds, and nanoseconds.
Starts with your browser's time zone. Offsets in brackets are for today, so they include daylight saving time where it applies.
A Unix timestamp counts the seconds since 00:00:00 UTC on January 1, 1970, ignoring leap seconds. Negative values are dates before 1970.
When the unit is set to auto-detect, it is chosen by the number of digits, ignoring any minus sign:
The detected unit is always shown, and you can override it. Large values are read as BigInt before scaling, so nanosecond timestamps keep their precision. Time zones use the IANA database through Intl.DateTimeFormat, so daylight saving time is applied correctly for each zone.
Systems that store the timestamp as a signed 32-bit number can only count up to 2,147,483,647 seconds. That limit is reached at 03:14:07 UTC on January 19, 2038, which is known as the year 2038 problem.
1700000000 (seconds) = 2023-11-14T22:13:20Z. That is Nov 15, 2023, 01:43:20 in Asia/Tehran, and Nov 14, 2023, 17:13:20 in America/New_York.0 = 1970-01-01T00:00:00Z, the Unix epoch.2147483647 = 2038-01-19T03:14:07Z, the last second a signed 32-bit timestamp can hold.| Language | Seconds since the epoch |
|---|---|
| JavaScript | Math.floor(Date.now() / 1000) |
| Python | int(time.time()) |
| PHP | time() |
| PostgreSQL | extract(epoch from now()) |
| Bash | date +%s |
JavaScript's Date.now() returns milliseconds, which is why timestamps from browsers usually have 13 digits instead of 10.
5000, is read as seconds unless you change the unit.The number of seconds since 00:00:00 UTC on January 1, 1970, not counting leap seconds. It is the same everywhere in the world, regardless of time zone.
Current timestamps in seconds have 10 digits, and in milliseconds they have 13. The converter detects this automatically and shows which unit it used.
Systems that store timestamps as signed 32-bit integers overflow after 03:14:07 UTC on January 19, 2038. Modern systems use 64-bit values and are not affected.
Yes. Dates are converted with the official time zone database, so DST changes are applied for each zone.
Often used together with the Unix Timestamp Converter.
Adds or subtracts a period from a date to give a new date.
One date in ISO 8601, RFC 2822, SQL, Unix, and custom formats.
Measures the elapsed time between a start clock time and an end clock time.