summaryrefslogtreecommitdiff
path: root/unixtime.bash
diff options
context:
space:
mode:
Diffstat (limited to 'unixtime.bash')
-rwxr-xr-xunixtime.bash6
1 files changed, 4 insertions, 2 deletions
diff --git a/unixtime.bash b/unixtime.bash
index 1e67741..f371b0c 100755
--- a/unixtime.bash
+++ b/unixtime.bash
@@ -1,2 +1,4 @@
-#!/bin/bash
-perl -e "require 'ctime.pl'; print &ctime($1);"
+#!/usr/bin/perl
+use POSIX qw( strftime );
+
+print strftime('%a %b %e %H:%M:%S %Z %Y', localtime( $ARGV[0] ) );