in reply to Converting date and time into seconds
If you are too exhausted to follow the advice of the previous post and do it yourself - click on the link below.
sub date_to_seconds{ my ($date, $time) = split(/\s/,shift(@_)); my ($year, $month, $day) = split(/-/, $date); my ($h, $m, $s) = split(/:/, $time); $month--; return timelocal($s, $m, $h, $day, $month, $year); }
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|