Epoch Time Converter
The current Unix Epoch Time is:
1679878691
Equivalent: date (month/day/year): 03/27/2023, time (hour:minute:second): 02:58:11
Human readable time from Unix time
Type Unix time and click to Convert.
Result is calculated with server time working in time zone UTC+1 (GMT+1).
If result is minus number, entered number is time before 1/1/1970.
Date: 01/01/1970, time: 01:00:00
Unix time from human readable time
Enter date and time and click to Convert.
Result is calculated with server time working in time zone UTC+1 (GMT+1).
If result is minus number, entered number is time before 1/1/1970 01:00:00 (1 hour = 60 minutes = 3600 seconds).
Unix epoch time: -3600
PHP
Current Unix Epoch Time
Time() show current Unix time. Unix time is defined as the number of seconds that have elapsed since Thursday, 1 January 1970 (0:0:0 Coordinated Universal Time - UTC).
Manual: http://php.net/manual/en/function.time.php
Unix epoch time to human readable time converter
<?php
echo StrFTime("Date: %d/%m/%Y, time: %H:%M:%S", 0);
?>
With strftime is possible to display date and time in a local time/date format according to locale settings.
Manual: http://php.net/manual/en/function.strftime.php
Human readable time to Unix time converter
<?php
echo mktime(0, 0, 0, 1, 1, 1970);
?>
Mktime returns the Unix timestamp corresponding to the time and date entered as arguments. Result is the number of seconds between the Unix Epoch (Thursday, 1 January 1970 00:00:00 GMT) and the time specified.
Manual: http://php.net/manual/en/function.mktime.php