Convert Unix timestamps, inspect dates and compare times across time zones. Check seconds versus milliseconds with PSDevTool’s time utilities.
The interactive workspace opens with JavaScript.
Read the tool guide ↓Translate machine timestamps into readable dates and compare times between locations. Check the timestamp unit and selected zone to avoid confusing the same instant with different local clock times.
PRACTICAL WALKTHROUGH
Timestamp debugging often starts with a value that has the right digits but the wrong unit. Confirm the unit before interpreting a surprising date. Then compare a UTC representation with the required local timezone.
Unix seconds: 1700000000 Equivalent Unix milliseconds: 1700000000000
UTC: 2023-11-14 22:13:20 Asia/Kolkata: 2023-11-15 03:43:20
Both timestamps represent the same instant. The date changes in Kolkata because its offset places the local clock after midnight. This does not mean the server stored a different event time.
One common cause is mixing seconds and milliseconds. Also check the selected time zone and whether the input represents UTC or local time.
Yes. A location’s UTC offset can vary by date. Use a named time zone and the intended date rather than assuming a fixed offset for the entire year.