---
title: "Discussion on \"Unix timestamps in JavaScript: seconds vs milliseconds\" | Hashnode"
description: "Discussion on \"Unix timestamps in JavaScript: seconds vs milliseconds\". A Unix timestamp counts the time since 1 January 1970 00:00:00 UTC. The most common bug is mixing up the unit. Many APIs and databases use seconds, while JavaScript uses milliseconds. The result is a"
url: "https://hashnode.com/posts/unix-timestamps-in-javascript-seconds-vs-milliseconds/6afbcf6a1b3963600b2a821c"
---

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

Discussion

# [Unix timestamps in JavaScript: seconds vs milliseconds](https://azqoratech.hashnode.dev/unix-timestamps-in-javascript-seconds-vs-milliseconds?utm_source=hashnode&utm_medium=feed)

A Unix timestamp counts the time since 1 January 1970 00:00:00 UTC. The most common bug is mixing up the unit. Many APIs and databases use seconds, while JavaScript uses milliseconds. The result is a

1d ago · 2 min read · azqoratech.hashnode.dev  
Read the article

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

## Written by

[Shahabaz Alam](https://hashnode.com/@azqora)

@azqora

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
