Convert Date to Unix Timestamp

Select a date and time to convert to Unix timestamp

Convert Unix Timestamp to Date

Enter a Unix timestamp (seconds since January 1, 1970)

What is Unix Timestamp?

Unix timestamp (also known as Epoch time or POSIX time) is the number of seconds that have elapsed since January 1, 1970 at 00:00:00 UTC (not counting leap seconds). It’s a widely-used standard in computing systems, APIs, databases, and programming languages to store and manipulate date-time values without the complexity of time zones or formats.

Features of Our Unix Timestamp Converter

Common Epoch Time Conversions

Time Unit Equivalent in Seconds
1 Minute60
1 Hour3,600
1 Day86,400
1 Week604,800
1 Month (30.44 days)2,629,743
1 Year (365.24 days)31,556,926

Convert Current Time in Code

You can use the following snippets to get the current Unix timestamp in your favorite language:

Language Code
JavaScriptMath.floor(Date.now() / 1000)
Pythonimport time; time.time()
PHPtime();
SQL (MySQL)SELECT UNIX_TIMESTAMP();
JavaSystem.currentTimeMillis() / 1000

How to Convert Epoch to Date in Code

What is the Year 2038 Problem?

Many older systems store Unix timestamps using 32-bit signed integers, which will overflow on January 19, 2038. This can cause time-based errors in such systems, similar to the Y2K issue.

Why Use Our Unix Time Converter Tool?

Use Cases of Unix Timestamps

Related Tools on DownloadDaisy