Convert Unix timestamps to dates and dates to timestamps.
Convert Unix timestamps to human-readable dates
A Unix timestamp is the number of seconds since January 1, 1970 (UTC), also called the Unix epoch.
Unix timestamps are typically in seconds, but JavaScript uses milliseconds. We detect and handle both.