Blog
Custom Print on Demand Apparel — Free Storefront for Your Business
Wild & Free Tools

Unix Timestamp & Epoch Time — Complete Developer Reference (2026)

Last updated: March 20269 min readDeveloper Tools

Quick Reference: Common Epoch Values

Unix timestamp is the number of seconds since January 1, 1970 (UTC). Here are reference points:

DateUnix TimestampMilliseconds
Jan 1, 2000 00:00 UTC946684800946684800000
Jan 1, 2020 00:00 UTC15778368001577836800000
Jan 1, 2025 00:00 UTC17356896001735689600000
Jan 1, 2026 00:00 UTC17672256001767225600000
Jan 19, 2038 03:14 UTC2147483647Y2K38 — 32-bit overflow

Seconds vs milliseconds: If the number is 10 digits (starts with ~17 in 2026), it is seconds. If 13 digits (starts with ~17xx in 2026), it is milliseconds. JavaScript uses milliseconds. Most APIs use seconds. The Timestamp Converter auto-detects which format you paste.

Timestamp vs Date — Why Both Exist

A common confusion: "Why not just store dates as dates?"

Use timestamps in databases, APIs, and backend logic. Convert to human-readable dates only at the display layer. This avoids the entire category of timezone bugs that plague applications.

Discord Timestamps — The Most Common Use Case

Discord uses Unix timestamps for dynamic time display. Format: <t:TIMESTAMP:FORMAT>

FormatCodeExample Output
Short time<t:1711843200:t>12:00 AM
Short date<t:1711843200:d>03/31/2026
Long date + time<t:1711843200:F>March 31, 2026 12:00 AM
Relative<t:1711843200:R>in 2 hours (dynamic)

The beauty: each reader sees the time in their own timezone. No "3pm EST / 12pm PST" confusion. Get the timestamp for any date with the Timestamp Converter and paste the Discord format code into your message.

Batch Conversion and Common Operations

Working with timestamps in bulk — log files, database exports, API responses:

The Y2K38 Problem

On January 19, 2038 at 03:14:07 UTC, 32-bit Unix timestamps overflow. The value 2147483647 (max 32-bit signed integer) rolls over to a negative number, which 32-bit systems interpret as December 13, 1901.

This is not hypothetical — embedded systems, IoT devices, and legacy databases using 32-bit timestamps will break. 64-bit timestamps extend the range to the year 292 billion, effectively solving the problem. Most modern systems already use 64-bit timestamps, but if you encounter a system that stores timestamps as 32-bit integers, plan the migration before 2038.

Try Timestamp Converter — free, private, unlimited.

Open Timestamp Converter
Launch Your Own Clothing Brand — No Inventory, No Risk