|Problems? Is your data what you think it is?|
Getting seconds from dateby ultranerds (Pilgrim)
|on Jun 05, 2011 at 09:55 UTC||Need Help??|
ultranerds has asked for the
wisdom of the Perl Monks concerning the following question:
I'm trying to convert a date like so:
..into the number of seconds.
To get the number of seconds from the current date, I use:
my $now_in_secs = Time::Local::timelocal(localtime);
...but trying to use that with the other format doesn't work (as it doesn't like the format of the date)
Can anyone suggest a good/effecient way to do this?