Scroll to navigation

Date(3pm) User Contributed Perl Documentation Date(3pm)
 

NAME

XMLTV::Date - Date parsing routines for the xmltv package

SEE ALSO

Date::Manip

"parse_date()"

Wrapper for "Date::Manip::ParseDate()" that does two things: firstly, if the year is not specified it chooses between last year, this year and next year depending on which date would be closest to now. (If only one of those dates is valid, for example because day-of-week is specified, then the valid one is chosen; if the time can only be parsed without adding an explicit year then that is chosen.) Secondly, an exception is thrown if the date cannot be parsed.
Argument is a single string.
2010-04-24 perl v5.14.2