I can not find a working script or way to do this on sun solaris , can someone please guide me?
e.g 1327329935 epoch secs = 012312 (ddmmyy)
thanks
I can not find a working script or way to do this on sun solaris , can someone please guide me?
e.g 1327329935 epoch secs = 012312 (ddmmyy)
thanks
date -d @1327329935 +%d%m%y
date -d does not work on Solaris
$ date -d @1327329935 +%d%m%y
date: illegal option -- d
usage: date [-u] mmddHHMM[[cc]yy][.SS]
date [-u] [+format]
date -a [-]sss[.fff]
perl -MPOSIX -le 'print strftime ("%d%m%y", localtime (1327329935))'
Thanks a lot !
that worked perfectly .
---------- Post updated at 10:34 AM ---------- Previous update was at 10:15 AM ----------
now iam stuck again !
perl is not translating the variable . without variable it gives me the correct date value but if i try to use a variable its giving me wrong values.
sdcprd@dotstoas110:$ echo $F2
1327332411
sdcprd@dotstoas110:$ perl -MPOSIX -le 'print strftime ("%m%d%y",localtime (1327332411))'
012312
sdcprd@dotstoas110:$ perl -MPOSIX -le 'print strftime ("%m%d%y",localtime ($F2))'
123169
sdcprd@dotstoas110:$ perl -MPOSIX -le 'print strftime ("%m%d%y",localtime (${F2}))'
123169
---------- Post updated at 10:35 AM ---------- Previous update was at 10:34 AM ----------
now iam stuck again !
perl is not translating the variable . without variable it gives me the correct date value but if i try to use a variable its giving me wrong values.
sdcprd@dotstoas110:$ echo $F2
1327332411
sdcprd@dotstoas110:$ perl -MPOSIX -le 'print strftime ("%m%d%y",localtime (1327332411))'
012312
sdcprd@dotstoas110:$ perl -MPOSIX -le 'print strftime ("%m%d%y",localtime ($F2))'
123169
sdcprd@dotstoas110:$ perl -MPOSIX -le 'print strftime ("%m%d%y",localtime (${F2}))'
123169
perl -MPOSIX -le 'print strftime ("%m%d%y",localtime ('$F2'))'