Why Your Timestamp Is Off by Exactly a Day
By toolbelt maintainers ·
Updated
The number is right, the date is wrong. Nine times in ten it is milliseconds versus seconds, or a timezone you did not think about.
What is this tool?
A Unix timestamp counts seconds since 1 January 1970 UTC. Some systems use milliseconds. Both look like integers, which is the problem.
How it works
I show the current epoch on a live clock, convert either direction, and report both local and UTC so you can see which one you were comparing against.
Example
1700000000 → 2023-11-14 22:13:20 UTC 1700000000000 → 2023-11-14 22:13:20 UTC Same instant, one is seconds, one is milliseconds.
When to use it
Reading a log line. Checking an exp claim. Debugging why a date shows as 1970 — which always means an empty or zero value, never a real bug in the conversion.
Optimization Tips
Count the digits. Ten is seconds, thirteen is milliseconds. If you get a date in 1970, your value was zero or a string. If you get a date thousands of years out, you multiplied seconds by 1000 twice.
Frequently Asked Questions
What timezone do timestamps use?
Why does the same timestamp show different dates?
Does this handle year 2038?
Can I convert a whole list?
Related tools
- UUID GeneratorGenerate cryptographically secure Version 4 (v4) UUIDs. Create batches of up to 100 unique identifiers at once, perfect for database primary keys or test data.
- Regex TesterTest regular expressions in real-time. See highlighted matches, named capture groups, exact character indexes, and test replacement strings with JavaScript flavors.
- Cron GeneratorExplain cron expressions in plain English and predict the next 5 run times. Validate syntax for Linux crontab or serverless schedulers before deploying jobs.
- Timestamp BatchConvert a whole list of Unix timestamps or dates at once. The unit is detected per line, so mixed seconds and milliseconds are handled together.