Unix Clock

The current Unix epoch, ticking once a second, in eight forms at once: milliseconds, seconds, hex, ISO 8601 UTC, ISO 8601 local, RFC 2822, Swatch Internet Time, day-of-year, and ISO week number. Paste any epoch in the converter below — decimal, hex, or ISO 8601 — and see every form at once. Everything runs in your browser, no upload.

Epoch (ms)
s ·
ISO 8601 UTC
ISO 8601 local
RFC 2822
Swatch .beat
Day of year
ISO week

Epoch converter

Paste an epoch and get every form. Accepts decimal (10/13/16/19 digits → s/ms/µs/ns), 1.5s / 1234ms / 1000us / 1000000ns, 0x… hex, and any ISO 8601 / RFC 2822 string.

Type or paste an epoch above.

About the formats
  • Epoch (ms): integer milliseconds since 1970-01-01T00:00:00Z, the form JavaScript's Date.now() returns and what getTime() measures.
  • Epoch (s): the same instant in seconds, the form POSIX time_t and most Unix CLIs use.
  • Hex: the ms value in base-16. Useful when matching kernel logs or date +%s | xxd output.
  • ISO 8601 UTC: the canonical wire format for log files, with .SSS milliseconds and a trailing Z.
  • ISO 8601 local: the same instant rendered in your browser's timezone, with no offset suffix.
  • RFC 2822: the form email headers use, with a numeric +HHMM offset.
  • Swatch .beat: one beat is 86.4 seconds. The day starts at midnight BMT (UTC+1). 1000 beats wraps to @000.
  • Day of year: 1-based; 365 in a common year, 366 in a leap year.
  • ISO week: 1–53, with week 1 containing the year's first Thursday. Useful for project planning.

The clock is wall-clock driven; it pauses when the browser tab is hidden, and resumes from the right value on focus. State stays in this tab.