epoch generation and converting

Problem

You want to generate the current epoch offset for UNIX. The count forward since 8am on 1st Jan 1970.

Or conversely you want to see the date and time, for a given epoch offset.



Solution

You can use perl’s mktime or localtime – or just use my tools below.



Example


Either enter epoch:

Or enter the date (plus time)

daymonthyear
hrminssecs

epoch offset or date will appear here



Reference

[tags]epoch, unix, 2038[/tags]

  1. techno park epoch year 2038 problem