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


Comment (1)

  1. admin

    Try putting in 19th Jan 2038 11 hours 14 minutes and 8 seconds then 7 seconds. End of 32 bit EPOCH!! 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *