Questions and answers

How does it tell seconds from milliseconds?

By the number of digits: up to 11 digits are read as seconds, 12 to 14 as milliseconds, 15 to 17 as microseconds and longer numbers as nanoseconds. Choose the unit yourself when a timestamp is unusually small or large.

What happens to dates written without a time zone?

They are read in the time zone you choose, your browser's by default. When the clocks went back and that time happened twice, the first one is used; when the clocks jumped forward past it, the tool says so.

Does Unix time count leap seconds?

No. Unix time counts every day as 86,400 seconds, so a leap second such as 23:59:60 has no timestamp of its own and is refused.

Are nanosecond timestamps kept exact?

Yes. Numbers are held as whole nanoseconds without rounding, so all 19 digits survive, and the ISO 8601 results show them. The readable and HTTP forms show whole seconds.

  • Time Calculator Find the hours and minutes between two times, move a time forward or back, or add up a timesheet.
  • Date Difference Calculator Count the years, months, weeks and days between two dates, with weekdays and weekend days.
  • JWT Decoder Decode a JSON Web Token to read its header and claims, and check its signature with your key.
  • JSON Formatter Format, validate and minify JSON, with the exact line and column of any error.

More Developer tools