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
Date(3) User Contributed Perl Documentation Date(3)

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

Date::Manip

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.

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.

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.

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

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

2025-07-17 perl v5.40.2

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

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