summaryrefslogtreecommitdiff
path: root/unixtime.pl
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2015-08-10 10:01:43 +0100
committerLuke Bratch <luke@bratch.co.uk>2015-08-10 10:01:43 +0100
commit1ff7c6514b67ce23b6d7e02f19bd2b77cb361def (patch)
tree1e20d8f99977b848d2ea14527fd5054a3d24d6c9 /unixtime.pl
parent5ccd72ab4e6eec04bbba314db2309bc0de380562 (diff)
Rename to .pl as now a proper Perl script
Diffstat (limited to 'unixtime.pl')
-rwxr-xr-xunixtime.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/unixtime.pl b/unixtime.pl
new file mode 100755
index 0000000..f371b0c
--- /dev/null
+++ b/unixtime.pl
@@ -0,0 +1,4 @@
+#!/usr/bin/perl
+use POSIX qw( strftime );
+
+print strftime('%a %b %e %H:%M:%S %Z %Y', localtime( $ARGV[0] ) );