---
title: "Discussion on \"Is this timestamp in seconds or milliseconds? Guessing the unit from the digit count\" | Hashnode"
description: "Discussion on \"Is this timestamp in seconds or milliseconds? Guessing the unit from the digit count\". Guess a Unix timestamp's unit from its digit count, keep nanoseconds exact with BigInt, floor negative values and respect the JavaScript Date range."
url: "https://hashnode.com/posts/is-this-timestamp-in-seconds-or-milliseconds-guessing-the-unit-from-the-digit-count/6af538244f3323824270cb0c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Is this timestamp in seconds or milliseconds? Guessing the unit from the digit count](https://toolsyhub.hashnode.dev/is-this-timestamp-in-seconds-or-milliseconds-guessing-the-unit-from-the-digit-count?utm_source=hashnode&utm_medium=feed)

Guess a Unix timestamp's unit from its digit count, keep nanoseconds exact with BigInt, floor negative values and respect the JavaScript Date range.

21h ago · 3 min read · toolsyhub.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Toolsy Hub](https://hashnode.com/@toolsyhub)

@toolsyhub

  
[View profile](https://hashnode.com/@toolsyhub)

Free browser tools for PDFs, photos, text, code and money. Files you add stay in your browser.

Free browser tools for PDFs, photos, text, code and money: compress a PDF or photo to an exact KB size, merge and split PDFs, format JSON, decode JWTs and more. Files you add stay in your browser. No sign-up. https://www.toolsy-hub.com

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
