What is a Unix timestamp?
A Unix timestamp is the number of seconds elapsed since January 1, 1970 at 00:00:00 UTC. Read the full Unix timestamp guide for examples and best practices.
Why are some timestamps 10 digits and others 13 digits?
Current Unix timestamps in seconds are usually 10 digits. JavaScript and many event systems use milliseconds, which are usually 13 digits for current dates.
Should I store UTC or local time?
Store UTC instants for events, logs, expirations, and database records. Store a timezone identifier when the business rule depends on local civil time.
What date is timestamp 0?
Timestamp 0 is 1970-01-01 00:00:00 UTC, also known as the Unix epoch.