Current Unix Timestamp & Epoch Time Converter

Instantly generate and copy the current Unix time in seconds and milliseconds, or convert between dates and timestamps.

Get current unix timestamp in seconds

Copy

Get current timestamp in milliseconds

Copy

Convert Date to Unix Timestamp

Select a date and time to generate the corresponding Unix timestamp.

Seconds: - Copy
Milliseconds: - Copy

Convert Unix Timestamp to Date

Enter a Unix timestamp to get the human-readable date and time.

GMT / UTC: -
Your Local Time: -

What is the Unix timestamp?

Unix time (also known as Epoch time or POSIX time) is a system for describing a point in time. It is the number of seconds that have elapsed since the Unix epoch, excluding leap seconds. The Unix epoch is defined as 00:00:00 UTC on 1 January 1970.

This system is widely used in operating systems, file formats, and databases to track time accurately across different time zones.

How to get the current Epoch time in various languages

Here is how you can generate the current Unix timestamp programmatically in popular programming languages:

JavaScript
Math.floor(Date.now() / 1000)
Python
import time
int(time.time())
Golang
time.Now().Unix()
PHP
time()

What is the Year 2038 Problem?

The Year 2038 problem (or Y2038) is an issue for computing situations where time values are stored as a signed 32-bit integer. On January 19, 2038, the Unix timestamp will exceed the maximum value of a 32-bit integer (2,147,483,647 seconds). This may cause older systems to wrap around to a negative number, resulting in incorrect dates. Most modern systems have solved this by upgrading to 64-bit integers.