Current Unix Time
Four readings of the same browser-clock instant, with a copy button on each. Updating these readings does not contact a time server; loading the page and analytics may still make network requests. More digits do not establish greater clock accuracy.
Live epoch, four units
Derived from the browser time origin and elapsed timer, not a verified time server. Microseconds are an estimate; nanoseconds only rescale that estimate. Browser timer reduction and device clock error still apply.
Get the current timestamp in your language
| Language | Seconds | Milliseconds |
|---|---|---|
| JavaScript | Math.floor(Date.now() / 1000) | Date.now() |
| Python | int(time.time()) | time.time_ns() // 1_000_000 |
| Go | time.Now().Unix() | time.Now().UnixMilli() |
| Rust | std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).expect("clock before epoch").as_secs() | std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).expect("clock before epoch").as_millis() |
| Java | Instant.now().getEpochSecond() | Instant.now().toEpochMilli() |
| PHP | time() | (int)(microtime(true) * 1000) |
| Bash (GNU date) | date +%s | date +%s%3N |
| SQL (MySQL) | UNIX_TIMESTAMP() | UNIX_TIMESTAMP(NOW(3)) * 1000 |
The unit split is not cosmetic: an API key expiring in "1789774800000" seconds is ~56,000 years of exposure, whereas the same value in milliseconds is a date in September 2026. Pick the unit your consumer expects and write it in the field name (expires_at_ms).
How live is "live"?
- An estimate of device time: the page anchors to your wall clock at startup and advances using
performance.now(). Accuracy depends on your device; this is not a clock-synchronization service. - Millisecond resolution in this widget: it takes an integer millisecond estimate and multiplies it by 1,000 or 1,000,000 for the µs and ns rows. Those extra digits are padding, not measured sub-millisecond precision.
- It keeps ticking while the tab is open, using a monotonic clock, so it does not jump if your system clock is adjusted mid-session — but it is still derived from the wall clock.
ANSWERS
01 What is the current Unix timestamp?
The first row shows an estimate of your device’s current Unix seconds. It starts from the wall clock and advances with a monotonic timer, rather than rereading Date.now() each frame. It can diverge from Date.now() after a system-clock adjustment and is not an independent time reference.
02 Why do the microsecond and nanosecond rows end in zeros?
This widget scales an integer millisecond reading: the µs row adds three zero digits and the ns row adds six. It does not measure microseconds or nanoseconds. A runtime API with a finer unit also does not guarantee matching clock resolution or accuracy.
03 How do I get the current timestamp in Python / JS / Go / bash?
See the table for expressions in eight runtimes; imports and runtime context are required where applicable. A complete Rust example is fn main() { let d = std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).expect("clock before epoch"); println!("{} {}", d.as_secs(), d.as_millis()); }. It reads the clock once for both units and explicitly handles a pre-epoch clock by failing.
04 Does the timestamp include a timezone?
No, and that is the point. The Unix timestamp counts seconds since 1970-01-01 UTC as a single integer; every timezone is a display-layer decision applied afterwards. Two servers in different zones print the same current timestamp.
05 When does the current timestamp hit 2,000,000,000?
2033-05-18 03:33:20 UTC — a nice non-event for 64-bit systems, but a useful milestone to remember when testing anything that still assumes 10-digit strings fit in a 32-bit signed integer (they stop fitting at 2,147,483,647 in 2038).