Vclock · Unix Timestamp Converter
Current Unix timestamp
seconds since January 1, 1970 UTC · -- milliseconds
Timestamp to date
Enter a whole number, for example 1700000000.
Date to timestamp
Pick a date and time.
About Unix time
Unix time, also called epoch time or POSIX time, counts the seconds since the start of 1970 in UTC. It is used in databases, logs, APIs and file systems because it is one plain number that is easy to store, sort and compare.
Examples
01970-01-01 00:00:00 UTC (the Unix epoch)10000000002001-09-09 01:46:40 UTC17000000002023-11-14 22:13:20 UTC21474836472038-01-19 03:14:07 UTC (largest 32-bit value)
Get the current timestamp in code
- JavaScript
Math.floor(Date.now() / 1000) - Python
int(time.time()) - PHP
time() - Java
Instant.now().getEpochSecond() - Bash
date +%s
Working with time zones? Try the time zone converter or the world clock. For days between dates, use the date calculator.
Questions
What is a Unix timestamp?+
A Unix timestamp is the number of seconds that have passed since January 1, 1970 at 00:00:00 UTC. It is a simple way for computers to store a moment in time without a time zone.
How do I tell seconds from milliseconds?+
A timestamp in seconds has 10 digits today, like 1700000000. A timestamp in milliseconds has 13 digits, like 1700000000000. The converter detects this on Auto, and you can force either one.
Does a Unix timestamp have a time zone?+
No. It always counts from UTC, so the same number is the same moment everywhere. Only the readable date changes with the time zone, and the converter shows both UTC and your own time.
What is the year 2038 problem?+
Systems that store the timestamp as a signed 32-bit number run out at 2147483647, which is January 19, 2038 at 03:14:07 UTC. Systems using 64-bit numbers do not have this limit.
Are leap seconds counted?+
No. Unix time treats every day as exactly 86,400 seconds, so leap seconds are not included.