Understanding Time
The Unix timestamp is a system for describing a point in time. It is the number of seconds that have elapsed since the Unix Epoch, minus leap seconds.
The Unix Epoch is 00:00:00 UTC on 1 January 1970.
Pro Tip:
JavaScript Date.now() returns milliseconds, while most server-side languages use seconds.
Epoch Constants (s)
- 1 Hour 3,600
- 1 Day 86,400
- 1 Week 604,800
- 1 Year (Avg) 31,536,000