Unix Time

Unix time also known as Epoch time which is widely used in Unix systems. It's number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970.

Current Unix Time is 1713802230 seconds since 1 January 1970.

How To Get Unix Time?

All programming languages are able to get Unix time easily. You can refer to sample codes below.

var unixTime = Math.floor(Date.now() / 1000);
long unixTime = System.currentTimeMillis() / 1000L;

$unixTime = time();
import time
unixTime = int(time.time())
require 'time'
unixTime = Time.now.to_f
Dim unixTime As Integer
unixTime = (DateTime.UtcNow - New DateTime(1970, 1, 1, 0, 0, 0)).TotalSeconds
Int32 unixTime = (Int32)(DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds;
date +%s

Convert Unix Time to Formatted Date


Convert Formatted Date to Unix Time