# Unix Timestamp: Seconds or Milliseconds?

**URL:** <https://forum.freecodecamp.org/t/unix-timestamp-seconds-or-milliseconds/51136>\
**Category:** I Built This\
**Created:** [November 2, 2016, 2:54pm UTC](https://forum.freecodecamp.org/t/unix-timestamp-seconds-or-milliseconds/51136 "2016-11-02T14:54:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevcomedia](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevcomedia/32/125737_2.png) [@kevcomedia](https://forum.freecodecamp.org/u/kevcomedia)\
**Post date:** [November 2, 2016, 2:54pm UTC](https://forum.freecodecamp.org/t/unix-timestamp-seconds-or-milliseconds/51136/1 "2016-11-02T14:54:44Z")

</div>

The example project for the timestamp project seems to count the number of seconds since January 1, 1970 (took me some time to figure out why my code throws a different date from the example). I’m confused here. Shouldn’t it be the number of milliseconds?

**EDIT** Okay I looked at other campers’ timestamp projects and saw that they are counting seconds. I did a quick look up and found that I should use seconds.

[@moderators](https://forum.freecodecamp.org/groups/moderators) can you close this post? Thanks.

---

<div class="post-metadata">

**Author:** ![BenGitter](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/bengitter/32/12192_2.png) [@BenGitter](https://forum.freecodecamp.org/u/BenGitter)\
**Post date:** [November 2, 2016, 3:34pm UTC](https://forum.freecodecamp.org/t/unix-timestamp-seconds-or-milliseconds/51136/2 "2016-11-02T15:34:37Z")

</div>

Closed on November 2, 2016, 3:34pm UTC


