Useful Unix timestamps
| Moment | Timestamp (seconds) |
|---|---|
| 1 January 1970, the epoch | 0 |
| 1 January 2000 | 946684800 |
| 1 January 2025 | 1735689600 |
| 1 January 2026 | 1767225600 |
| 1 January 2027 | 1798761600 |
| 19 January 2038, 32-bit limit | 2147483647 |
Get the current timestamp in code
| Language | Seconds |
|---|---|
| JavaScript | Math.floor(Date.now() / 1000) |
| Python | int(time.time()) |
| Swift | Int(Date().timeIntervalSince1970) |
| Go | time.Now().Unix() |
| Terminal (macOS) | date +%s |
Discord timestamp styles
| Code | Shows |
|---|---|
| <t:1767225600:t> | Short time |
| <t:1767225600:T> | Long time |
| <t:1767225600:d> | Short date |
| <t:1767225600:D> | Long date |
| <t:1767225600:f> | Short date and time |
| <t:1767225600:F> | Long date and time |
| <t:1767225600:R> | Relative |
More time tools: the time zone meeting planner and the military time converter.