UTILITY ON-LINE

Epoch Time Converter

The current Unix Epoch Time is:

1526880075
Equivalent: date (month/day/year): 05/21/2018, time (hour:minute:second): 07:21:15

Human readable time from Unix time

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

day: month: year:
hour: minute: second:
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

<?php
echo(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