---
title: "Comment by StackShortlist on \"That API Timestamp Looks Like Nonsense — Here’s How I Read It in the Browser\" | Hashnode"
description: "A quick rule of thumb: ten digits is almost always seconds and thirteen is milliseconds, at least for dates between 2001 and 2286. Sixteen digits usually means"
url: "https://hashnode.com/posts/that-api-timestamp-looks-like-nonsense-here-s-how-i-read-it-in-the-browser/6ad1c39bab9cba8952c408bc/comment/6ad2ab65a305ffe669180b1e"
---

[Discussion](https://hashnode.com/posts/that-api-timestamp-looks-like-nonsense-here-s-how-i-read-it-in-the-browser/6ad1c39bab9cba8952c408bc)

Comment [That API Timestamp Looks Like Nonsense — Here’s How I Read It in the Browser](https://hashnode.com/posts/that-api-timestamp-looks-like-nonsense-here-s-how-i-read-it-in-the-browser/6ad1c39bab9cba8952c408bc)

[StackShortlist](https://hashnode.com/@veristria)

[Oct 16](https://hashnode.com/posts/that-api-timestamp-looks-like-nonsense-here-s-how-i-read-it-in-the-browser/6ad1c39bab9cba8952c408bc/comment/6ad2ab65a305ffe669180b1e)

A quick rule of thumb: ten digits is almost always seconds and thirteen is milliseconds, at least for dates between 2001 and 2286. Sixteen digits usually means microseconds, which shows up in Python and some database exports. Showing both UTC and local time side by side, as your tool does, saves a lot of off by a few hours confusion in bug reports.

[Ameen Usman](https://hashnode.com/@ameenusman)

[Oct 17](https://hashnode.com/posts/that-api-timestamp-looks-like-nonsense-here-s-how-i-read-it-in-the-browser/6ad1c39bab9cba8952c408bc/comment/6ad2ab65a305ffe669180b1e#reply-6ad2e16bd65fc5a31da27227)

Thanks — that’s a really useful rule of thumb.

KeptTools already treats 10-digit values as seconds and 13-digit as milliseconds, and showing UTC + local side by side was exactly to avoid those “off by a few hours” bug-report mistakes.

Microseconds (16 digits) from Python/DB exports is a good call too — I’ve noted that as feedback. Appreciate you adding this.

[StackShortlist](https://hashnode.com/@veristria)

[Oct 17](https://hashnode.com/posts/that-api-timestamp-looks-like-nonsense-here-s-how-i-read-it-in-the-browser/6ad1c39bab9cba8952c408bc/comment/6ad2ab65a305ffe669180b1e#reply-6ad2e93d13f22ae0d14121fd)

Nice that 10 vs 13 digits is already handled. If microseconds land later, a small hint when a 16 digit value is pasted would save people from reading a date thousands of years out.

[Ameen Usman](https://hashnode.com/@ameenusman)

[Oct 21](https://hashnode.com/posts/that-api-timestamp-looks-like-nonsense-here-s-how-i-read-it-in-the-browser/6ad1c39bab9cba8952c408bc/comment/6ad2ab65a305ffe669180b1e#reply-6ad8d4dad61b0623830a8649)

Good call — a hint on 16-digit values would stop that “year 50,000” confusion before it starts. I’ll keep that with the microseconds note: detect the length and show a clear cue (or convert) instead of silently treating it as seconds. Thanks for the practical UX tip.
