Simple UNIX Time Conversion

Often when inves­ti­gat­ing inci­dents, log files, file for­mats, etc I come across a Date and Time stored in UNIX for­mat. That is, the num­ber of sec­onds since Mid­night on Jan­u­ary 1st, 1970. The script is very straight for­ward and easy to use. Pass it the UNIX time on the com­mand line and it will out­put the time in a human read­able format.

The Script

Sam­ple Out­put
Convert Time Output

Leave a Reply