Current Unix Epoch Timestamp

0

timestamp in milliseconds is 0

date time in GMT is Thu, 01 Jan 1970 00:00:00 GMT

date time in your zone is Thu Jan 01 1970 00:00:00 GMT+0000 (Coordinated Universal Time)

What is epoch time?

Epoch time, also known as Unix time or POSIX time, is a system for describing a point in time. It is defined as the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC) on January 1, 1970, not counting leap seconds. This date is known as the Unix Epoch.

Epoch time is widely used in computer systems and programming as a standardized way to represent and work with dates and times.

Code Examples

Python
import time

current_epoch = int(time.time())
print(f"Current epoch time: {current_epoch}")
JavaScript
const currentEpoch = Math.floor(Date.now() / 1000);
console.log(`Current epoch time: 0`);
Java
long currentEpoch = System.currentTimeMillis() / 1000L;
System.out.println("Current epoch time: " + currentEpoch);
Ruby
current_epoch = Time.now.to_i
puts "Current epoch time: #{current_epoch}"