Developer

Unix Time Explained: Seconds, Milliseconds and Time Zones

A Unix timestamp is the number of seconds that have elapsed since midnight UTC on January 1, 1970, known as the epoch. What a Unix timestamp is, how to tell seconds from milliseconds, how time zones come into it, and the values worth recognising.

Awais 2 min readPublished
Unix Time Explained: Seconds, Milliseconds and Time Zones

A Unix timestamp is the number of seconds that have elapsed since midnight UTC on January 1, 1970, known as the epoch. It is the lingua franca of computers for representing a moment in time, but it is unreadable to humans. The ToolOrbit Unix Timestamp Converter translates between epoch numbers and clear dates in local, UTC, and ISO formats.

Seconds versus milliseconds

This is the most common source of confusion. Many systems, including most Unix tools and databases, use seconds. JavaScript's Date.now() and many APIs use milliseconds, which are 1000 times larger. A ten-digit number is almost certainly seconds; a thirteen-digit number is milliseconds. The converter auto-detects the unit so you do not have to guess.

1719619200  (seconds)      -> 2024-06-29 00:00:00 UTC
1719619200000 (milliseconds) -> same instant

ISO 8601: 2024-06-29T00:00:00Z

Time zones and formats

  • Local: the date as it appears in your own time zone, including daylight saving
  • UTC: the universal reference with no offset, ideal for logs and storage
  • ISO 8601: the standard machine-readable string with a Z or numeric offset
  • Always store and transmit timestamps in UTC, and convert to local only for display
Tip: The epoch is always UTC. A timestamp itself has no time zone; the offset only matters when you format it for a human to read.

Using the converter

Paste a timestamp to see it expanded into every format at once, or enter a human date to get the epoch value back. There is a one-click option to grab the current timestamp, handy for testing or seeding data. Everything is computed in your browser, so nothing you paste is sent anywhere.

Best practices

Be explicit about units in your APIs and database columns to avoid the seconds-versus-milliseconds trap. Keep timestamps in UTC end to end, and reserve local formatting for the final moment a value reaches a person. Watch for the year 2038 limit on 32-bit signed timestamps in older systems.

Timestamps you should recognize on sight

A few epoch anchors
TimestampUTC timeVibe
16094592002021-01-01 00:00:00New year
16725312002023-01-01 00:00:00Monotonic SaaS debut
17356896002025-01-01 00:00:00Recent
17525376000002025-07-15 00:00:00 (ms)Thirteen-digit surprise

If a date imports as 1970 or as years earlier than expected, the two usual suspects are milliseconds (thirteen digits) where seconds (ten) were expected, and seconds treated as milliseconds. Anchoring on a few recent Januaries makes both errors visible in a glance. And plan ahead: 32-bit epoch time wraps in 2038 (the “Year 2038 problem”) for systems still storing it as 32-bit integers.


Tools mentioned

More reading

View all guides
Free Developer Tools Online: 2026 Developer Toolkit & Guides
Developer

Free Developer Tools Online: 2026 Developer Toolkit & Guides

Explore 30+ free browser-based developer tools: JSON formatters, Base64 converters, cron generators, regex testers, SQL formatters, and hash generators.

3 min readPublished
CSS Border Radius: 15 Copy-Paste Examples
Developer

CSS Border Radius: 15 Copy-Paste Examples

15 modern CSS border radius examples: rounded cards, pills, circle avatars, asymmetrical organic blobs, and fancy 8-value border radius shapes.

3 min readPublished
Percent Encoding Reference Table (Every Character)
Developer

Percent Encoding Reference Table (Every Character)

Complete percent encoding ASCII reference table: quick lookup for spaces, slashes, ampersands, punctuation, and UTF-8 special characters in URLs.

3 min readPublished
URL Encoding Explained: %20 vs +, Reserved Characters & Rules
Developer

URL Encoding Explained: %20 vs +, Reserved Characters & Rules

Complete guide to percent encoding in URLs: learn when to use %20 vs +, how reserved characters like & and ? work, and how to avoid encoding bugs.

3 min readPublished
Cron Every Hour, Day & Midnight: All Daily Schedules
Developer

Cron Every Hour, Day & Midnight: All Daily Schedules

Master standard daily cron schedules: cron every hour, every day at midnight, twice a day, and custom hourly intervals with copy-paste examples.

4 min readPublished
Cron Expression Cheat Sheet — Copy-Paste Schedule Examples
Developer

Cron Expression Cheat Sheet — Copy-Paste Schedule Examples

Free cron expression cheat sheet with copy-paste examples for every 5 minutes, hourly, daily at midnight, weekdays only, and more.

5 min readPublished
Cron Every 10 Minutes — Syntax, Examples and Best Practices
Developer

Cron Every 10 Minutes — Syntax, Examples and Best Practices

Use the cron expression */10 * * * * to run jobs every 10 minutes, plus examples for common schedules and troubleshooting tips.

3 min readPublished
Why CSV Is Tricky to Parse: Delimiters, Quotes and Headers
Developer

Why CSV Is Tricky to Parse: Delimiters, Quotes and Headers

Why CSV files are harder to read correctly than they look, how to choose the right JSON shape, and the mistakes to avoid.

2 min readPublished