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
In reply to Re: date conversion
by davorg
in thread date conversion
by monskie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |