.

Unix Timestamp & Epoch Conversion Tools


The current Unix Epoch Time is: 1714195536 

Convert Timestamp To Human-Readable Date

Supports Unix timestamps in seconds, milliseconds, microseconds and nanoseconds.


Convert Human-Readable Date To Timestamp

Year
Month
Day
Hour
Minute
Second






Convert Seconds To Days, Hours & Minutes


Timestamp for Start and End of Day

Year
Month
Day

What is the Unix Time Stamp?

The Unix Time (also known as Epoch Time, Posix Time, seconds since the Epoch, or UNIX Epoch time) is a technique to indicate about a point in time. It can be a number of seconds between particular date time and that have passed since 1 January 1970 at Coordinated Universal Time (UTC). So the Epoch is Unix time 0 (1-1-1970) but it is also used as Unix Time or Unix Timestamp. There are many Unix Systems that stored the description of Unix time is as a signed 32-bit integer, the description will end after the completion of seconds from 1 January 1970, which will happen at 3:14:08 UTC on 19 January 2038. This is called as the Year 2038 problem, where the 32-bit signed Unix time will overflow and will take the actual count to negative.

Here is a list of time measures from Epoch Time:
Seconds Minutes Hours Readable time
60 1 0.016667 1 minute
3600 60 1 1 hour
86400 1440 24 1 day
604800 10080 168 1 week
2629744 43829.0667 730.4844 1 month (30.44 days)
31556926 525948.767 8765.813 1 year (365.24 days)

Convert from Human-Readable date/time to Epoch/Timestamp

PHP strtotime parses most English language date texts to epoch/Unix Time.
echo strtotime("26 April 2024");
// ... or ...
echo strtotime("2024/04/26");
// ... or ...
echo strtotime("+10 days"); // 10 days from now
// object oriented
$date = new DateTime('04/26/2024'); // format: MM/DD/YYYY
echo $date->format('U');
Read More...
JavaScript var myDate = new Date("July 1, 1978 02:30:00"); // Your timezone!
var myEpoch = myDate.getTime()/1000.0;
document.write(myEpoch);
Read More...
Perl use Time::Local;
$time = timelocal($sec,$min,$hours,$day,$month,$year);
Read More...
Python import calendar, time; calendar.timegm(time.strptime('2024-26-04 11:04:36', '%Y-%m-%d %H:%M:%S')) Read More...

Convert from Epoch/Timestamp to Human-Readable date/time

PHP $epoch = 1714195536; $dt = new DateTime("@$epoch"); // convert UNIX timestamp to PHP DateTime echo $dt->format('Y-m-d H:i:s'); // output = 2024-04-26 23:25:36 Read More...
JavaScript var myDate = new Date("July 1, 1978 02:30:00"); // Your timezone!
var myEpoch = myDate.getTime()/1000.0;
document.write(myEpoch);
Read More...
Perl use Time::Local;
$time = timelocal($sec,$min,$hours,$day,$month,$year);
Read More...
Python import time; time.strftime("%a, %d %b %Y %H:%M:%S +0000", time.localtime(epoch)) Replace
time.localtime with time.gmtime for GMT time. Or using datetime: import datetime; datetime.datetime.utcfromtimestamp(epoch).replace(tzinfo=datetime.timezone.utc)
Read More...