Online Unix epoch time Encode Decode

The Unix epoch (or Unix time or POSIX time or Unix timestamp) is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap seconds (in ISO 8601: 1970-01-01T00:00:00Z). Literally speaking the epoch is Unix time 0 (midnight 1/1/1970), but epoch is often used as a synonym for Unix time. Some systems store epoch dates as a signed 32-bit integer, which might cause problems on January 19, 2038 (known as the Year 2038 problem or Y2038). The converter on this page converts timestamps in seconds (10-digit), milliseconds (13-digit) and microseconds (16-digit) to readable dates.

Convert an Unix epoch date to human-readable date:

var myDate = new Date( your epoch date *1000);
document.write(myDate.toGMTString()+myDate.toISOString());

Output:

2023-07-01T01:30:00.000Z

Convert human-readable dates to epoch:

var myDate = new Date("2023-07-01T01:30:00.000Z"); // Your timezone! 
var myEpoch = myDate.getTime()/1000.0; document.write(myEpoch);

Output:

1688175000