sandycat05 has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use Time::localtime; ########################################################## # date_to_seconds subroutine sub date_to_seconds{ my $date = shift(@_); my ($year, $month, $day) = split(/-/, $date); $month--; return timelocal(0,0,0, $day, $month, $year); } ##########################################################
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Converting date and time into seconds
by Limbic~Region (Chancellor) on Jun 26, 2006 at 15:39 UTC | |
|
Re: Converting date and time into seconds
by Tanktalus (Canon) on Jun 26, 2006 at 16:06 UTC | |
|
Re: Converting date and time into seconds
by davorg (Chancellor) on Jun 26, 2006 at 15:42 UTC | |
|
Re: Converting date and time into seconds
by shmem (Chancellor) on Jun 26, 2006 at 16:02 UTC |