UNIX TIMESTAMP EXAMPLES
Explore common Unix timestamp conversions with detailed explanations. These examples will help you understand epoch time and practice with real-world timestamps.
HISTORICAL TIMESTAMPS
0=January 1, 1970, 00:00:00 UTC
The Unix epoch - the beginning of Unix time
86400=January 2, 1970, 00:00:00 UTC
One day after epoch (86,400 seconds = 1 day)
946684800=January 1, 2000, 00:00:00 UTC
Y2K - The millennium celebration
1000000000=September 9, 2001, 01:46:40 UTC
The billionth second since epoch
1234567890=February 13, 2009, 23:31:30 UTC
A memorable timestamp often used in examples
1735689600=January 1, 2025, 00:00:00 UTC
New Year 2025
2147483647=January 19, 2038, 03:14:07 UTC
Maximum 32-bit signed integer - the Year 2038 problem
TIMESTAMP FORMATS
Unix timestamps can be represented in different formats depending on the precision needed and the system being used.
Seconds
1735344072
10 digits
Standard Unix timestamp format
Most common in Unix systems, databases
Milliseconds
1735344072000
13 digits
JavaScript Date.now() format
Web development, JavaScript, APIs
Microseconds
1735344072000000
16 digits
High-precision timestamp
Scientific computing, high-frequency trading
PROGRAMMING EXAMPLES
JAVASCRIPT
// Get current timestamp Date.now() // milliseconds Math.floor(Date.now() / 1000) // seconds // Convert timestamp to date new Date(1735344072000) // Convert date to timestamp new Date('2025-01-27').getTime()
PYTHON
import time from datetime import datetime # Get current timestamp time.time() # Convert timestamp to date datetime.fromtimestamp(1735344072) # Convert date to timestamp datetime(2025, 1, 27).timestamp()