Unix Timestamp Converter
Convert between Unix timestamps and human-readable dates. Unix time is the number of seconds that have elapsed since January 1, 1970 (UTC), not counting leap seconds.
Frequently Asked Questions
What is a Unix timestamp?
A Unix timestamp is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap seconds. It's a way to represent a specific point in time as a single number.
How do I convert a Unix timestamp to a readable date?
You can use our Unix Timestamp Converter tool above. Simply enter the timestamp in the "Convert Unix Timestamp to Date" section and click "Convert". The tool will show you the date in UTC, your local time, and as a relative time.
What is the current Unix timestamp?
The current Unix timestamp is displayed in the "Current Unix Timestamp" section of our tool. It updates automatically every second.
Why do some systems use millisecond timestamps?
Millisecond timestamps provide more precision for applications that need to track events occurring within the same second. JavaScript's Date.now()
, for example, returns the number of milliseconds since the Unix epoch.
How can I get the Unix timestamp in different programming languages?
Here are examples in common programming languages:
- JavaScript:
Math.floor(Date.now() / 1000)
- PHP:
time()
- Python:
import time; int(time.time())
- Java:
System.currentTimeMillis() / 1000
- Ruby:
Time.now.to_i