Keep It Simple, Stupid | |
PerlMonks |
[OT] Number of seconds from epochby sanPerl (Friar) |
on Feb 13, 2007 at 13:40 UTC ( [id://599683]=perlquestion: print w/replies, xml ) | Need Help?? |
sanPerl has asked for the wisdom of the Perl Monks concerning the following question:
I am writing perl scripts for nagios. I am getting a value $time_new from a subroutine. I am using
to get the number of seconds from epoch (for e.g. date -d 'Tue Feb 13 19:04:04 IST 2007' +%s, gives you 1171373644). It is running fine on Linux, when I run my script on SunOS Unix, the script fails. I checked with man pages of SunOS and found that there is NO +%s option in Unix date command. Any suggestions please
Back to
Seekers of Perl Wisdom
|
|