Convert between Unix/epoch timestamps and human-readable dates. Live current timestamp. UTC and IST support.
Seconds vs Milliseconds: 10-digit = seconds · 13-digit = milliseconds (÷1000 to get seconds)
Get current timestamp in code:
A Unix timestamp (also called epoch time) is the number of seconds elapsed since January 1, 1970, 00:00:00 UTC (the Unix epoch). It is a universal, timezone-independent way to represent a moment in time. For example, the timestamp 1700000000 corresponds to November 14, 2023, 22:13:20 UTC.
Standard Unix timestamps are in seconds (10-digit numbers). JavaScript's Date.now() returns milliseconds (13-digit numbers). To convert: milliseconds ÷ 1000 = seconds. For example, 1700000000000 ms = 1700000000 seconds.
For 32-bit systems, the maximum Unix timestamp is 2,147,483,647 (January 19, 2038, 03:14:07 UTC) — this is the Y2K38 problem. 64-bit systems can handle timestamps up to the year 292,277,026,596.
JavaScript: Math.floor(Date.now()/1000) or Date.now() for ms. Python: import time; int(time.time()). PHP: time(). Java: Instant.now().getEpochSecond(). Go: time.Now().Unix(). Shell: date +%s.
IST (Indian Standard Time) is UTC+5:30 — 5 hours and 30 minutes ahead of UTC. There is no daylight saving time in India, so the offset is always +5:30 throughout the year.