How to use it
- Enter a timestamp — the unit is detected automatically: seconds (10 digits), milliseconds (13), microseconds (16) or nanoseconds.
- Or enter a date such as
2026-01-31 14:30or an ISO string like2026-01-31T14:30:00Z. - Leave the field empty to see the current time.
You get the timestamp in seconds and milliseconds, ISO 8601, UTC, RFC 2822, your local time zone, the day of the year and a relative time ("3 days ago").
Getting the current timestamp in code
| Language | Code |
|---|---|
| JavaScript | Math.floor(Date.now() / 1000) |
| PHP | time() |
| Python | int(time.time()) |
| MySQL | UNIX_TIMESTAMP() |
Frequently asked questions
What is the year 2038 problem?
Systems that store timestamps as signed 32-bit integers overflow on 19 January 2038. Modern systems use 64-bit values.
Are Unix timestamps in UTC?
Yes, a timestamp is always counted from UTC; time zones only matter when displaying it.
How do I tell seconds from milliseconds?
Current timestamps in seconds have 10 digits; in milliseconds they have 13.

