Epoch Time Converter
Convert between Unix timestamps and human-readable dates with precision and ease
Enter Epoch Timestamp
Example: 1609459200 (January 1, 2021)
Common timestamps:
Conversion Result
Local Time
-
UTC Time
-
ISO 8601
-
RFC 2822
-
Relative Time
-
About Epoch Time
Epoch time (also known as Unix time or POSIX time) is a system for representing a point in time as the number of seconds that have elapsed since 00:00:00 UTC on Thursday, 1 January 1970, minus leap seconds.
Common Use Cases
- • Storing timestamps in databases
- • Comparing dates in programming
- • Working with APIs that use Unix time
- • Calculating time differences
Notable Timestamps
- • 0 - Jan 1, 1970 (Unix Epoch)
- • 1000000000 - Sept 9, 2001
- • 1500000000 - July 14, 2017
- • 2147483647 - Year 2038 Problem (32-bit overflow)
Units of Measurement
- • Seconds - Standard Unix timestamp (10 digits for current dates)
- • Milliseconds - Used by JavaScript Date.now() (13 digits)
- • Microseconds - Higher precision timestamps (16 digits)
Developer Resources:
JavaScript
// Get current Unix timestamp in seconds const epochSeconds = Math.floor(Date.now() / 1000); // Get Unix timestamp in milliseconds const epochMilliseconds = Date.now(); // Create Date from Unix timestamp const date = new Date(epochSeconds * 1000);
Python
import time from datetime import datetime # Get current Unix timestamp in seconds epoch_seconds = int(time.time()) # Create datetime from Unix timestamp date = datetime.fromtimestamp(epoch_seconds)