Tool
Convert Unix timestamps to human-readable dates and vice versa. Real-time epoch clock, local and GMT time support, professional developer tool.
The Unix epoch (also called Unix time, POSIX time, or a Unix timestamp) is the number of seconds since January 1, 1970, 00:00:00 UTC, not counting leap seconds (ISO 8601: 1970-01-01T00:00:00Z). Strictly speaking, the epoch is Unix time 0, but people often use "epoch" as shorthand for Unix time in general.
Some systems store epoch values as signed 32-bit integers, which can break on January 19, 2038, known as the Year 2038 Problem. This page converts timestamps in seconds (10 digits), milliseconds (13 digits), and microseconds (16 digits) into readable dates.
| Human-readable time | Seconds |
|---|---|
| 1 hour | 3600 seconds |
| 1 day | 86400 seconds |
| 1 week | 604800 seconds |
| 1 month (30.44 days) | 2629743 seconds |
| 1 year (365.25 days) | 31556926 seconds |
The first line for each language shows how to get the current epoch time. The second line shows how to convert an epoch timestamp to a human-readable date.
Replace the example epoch time 1800000000 with your own value. All examples return the epoch timestamp in seconds (and not milliseconds).
| Language | Code Snippet |
|---|---|
| Python | |
| PHP | |
| JavaScript | |
| Java | |
| C++ | |
| C# | |
| Go | |
| SQL Variants |
PostgreSQL:
MySQL:
|
| Unix/Linux Shell |
Note: All tools on this page are based on the date & time settings of your computer and use JavaScript to convert times.