diff options
-rwxr-xr-x | unixtime.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unixtime.pl b/unixtime.pl index 2675634..f47cf9f 100755 --- a/unixtime.pl +++ b/unixtime.pl @@ -7,7 +7,7 @@ if (defined $ARGV[0]) { #Convert from timestamp in milliseconds to date $seconds = substr $ARGV[0], 0, 10; $milliseconds = substr $ARGV[0], 10, 3; - $date = strftime('%a %b %e %H:%M:%S:'.$milliseconds.' %Z %Y', localtime( $seconds ) ) . "\n"; + $date = strftime('%a %b %e %H:%M:%S:' . $milliseconds . ' %Z %Y', localtime( $seconds ) ) . "\n"; print $date; } elsif ($ARGV[0] eq "ms") { #Print current millisecond unix timestamp |