
kuldip27
New User
Aug 21, 2010, 5:03 PM
Post #1 of 2
(358 views)
|
|
AIX61 Perl5.8.8.120
|
Can't Post
|
|
I have the following code in my script which has been working on AIX5.3 but it started giving me wrong "hour" (localtime -5 hrs) when running on AIX61. Here is the code: EPOCH_DATE=`date +%s` perl -le ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime('${EPOCH_DATE}'); printf "%02d%02d%02d%02d%02d\n",$mon+1,$mday,$hour,$min,$year%100' Appreciate any help.
|