GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  XMLTV::DATE (3)

.ds Aq ’

NAME

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

CONTENTS

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.

time_xmltv_to_iso()

Converts a XMLTV time e.g. 20140412090000 +0300 to ISO format i.e. 2014-04-12T09:00:00.000+03:00

Argument is string time to convert.

time_iso_to_xmltv()

Converts an ISO time e.g. 2014-04-12T09:00:00.000+03:00 to XMLTV format, i.e. 20140412090000 +0300

Argument is string time to convert.

time_xmltv_to_epoch()

Converts a XMLTV time e.g. 20140412090000 +0300 to seconds since the epoch

(uses POSIX::mktime rather than Date::Manip to avoid issues with the latter)

Alternatively you could use DateTime::Format::XMLTV on CPAN

Argument is string time to convert. Optional 2nd argument: set to 1 ignore the tz offset in the calculation

time_iso_to_epoch()

Converts an iso time (e.g. 2014-04-12T09:00:00.000+03:00) to epoch time

(uses POSIX::mktime rather than Date::Manip to avoid issues with the latter)

Alternatively you could use DateTime::Format::XMLTV on CPAN

Argument is string time to convert. Optional 2nd argument: set to 1 ignore the tz offset in the calculation

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DATE (3) 2016-04-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.