My Computer Programs

convert unix time to local time

steloflute 2013. 10. 1. 13:53

# perl

perl -e'print scalar localtime time'



# GNU awk

awk 'BEGIN{print strftime("%c", systime())}'



# GNU date

date -d@0


'My Computer Programs' 카테고리의 다른 글

porttest  (0) 2013.12.12
minicalc  (0) 2013.12.10
(Perl) psh - Perl REPL  (0) 2013.09.24
(Perl) lastpwchg.pl - prints users' last password change times  (0) 2013.09.23
(Perl) lastupdate-aix.pl  (0) 2013.09.16