Unix Timestamp Explained
The Unix timestamp (also called epoch time, POSIX time) is the number of seconds elapsed since January 1, 1970 00:00:00 UTC (the Unix epoch), not counting leap seconds.
Current Unix timestamp: --
Timestamp Converter
--
--
--
--
--
Convert seconds to human time
--
--
Unix Timestamp in Different Languages
| Language | Get current timestamp |
|---|---|
| JavaScript | Math.floor(Date.now()/1000) |
| Python | int(time.time()) |
| PHP | time() |
| Java | System.currentTimeMillis()/1000 |
| Go | time.Now().Unix() |
| MySQL | UNIX_TIMESTAMP() |
| Bash | date +%s |
Why 1970?
The Unix epoch of Jan 1, 1970 was chosen because Unix was first developed in the early 1970s, and this date was a convenient, round reference point.