in reply to date conversion
The easy way would be to use a module like Date::Parse.
But if you don't have that module installed and don't want to install it, then you can split the string into its constituent parts and use timelocal (or timegm) from the standard module Time::Local.
But I'm not really sure how a date can be more or less than 14 hours. A date is just a point in time. You can't compare dates with durations.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: date conversion
by ikegami (Patriarch) on Dec 05, 2006 at 18:03 UTC |