Permalink
Browse files

- Add a small utility to convert epoch to localtime since I am too la…

…zy to retrieve the correct options of date(1)
  • Loading branch information...
1 parent d8950c5 commit cd5d5327493b49d093ff6a273d5dce8ae50ce23e @steveschnepp steveschnepp committed Nov 30, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 contrib/epoch2localtime
@@ -0,0 +1,6 @@
+#! /usr/bin/perl
+# Convert epoch to human readable time
+
+while (my $epoch = shift) {
+ print "" . localtime($epoch) . "\n";
+}

0 comments on commit cd5d532

Please sign in to comment.