Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
site-packages
/
_xmlplus
/
utils
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/site-packages/_xmlplus/utils/iso8601.pyc
mò xùžNc @ s´ d Z d Z d k Z d „ Z d „ Z d d „ Z d „ Z d k Z d Z d Z e i e ƒ Z d e Z d e e f Z e i e ƒ Z [ d „ Z d „ Z d „ Z d „ Z d S( sž ISO-8601 date format support, sufficient for the profile defined in <http://www.w3.org/TR/NOTE-datetime>. The parser is more flexible on the input format than is required to support the W3C profile, but all accepted date/time values are legal ISO 8601 dates. The tostring() method only generates formatted dates that are conformant to the profile. This module was written by Fred L. Drake, Jr. <fdrake@acm.org>. s 1.0Nc C sy t i | ƒ } | d j p | i ƒ | j o t d | ‚ n t | ƒ t | ƒ d } t i | ƒ t | ƒ t i S( sW Parse an ISO-8601 date/time string, returning the value in seconds since the epoch.s) unknown or illegal ISO-8601 date format: i N( i i i ( t __datetime_rxt matcht st mt Nonet groupt ValueErrort __extract_datet __extract_timet gmtt timet mktimet __extract_tzdt timezone( R R R ( ( t: /usr/lib/python2.4/site-packages/_xmlplus/utils/iso8601.pyt parse s c C sW t i | ƒ } | p t d | ‚ n | i ƒ | j o t d | ‚ n t | ƒ S( s[ Parse an ISO-8601 time zone designator, returning the value in seconds relative to UTC.s unknown timezone specifier: N( t __tzd_rxR R R R R R ( R R ( ( R t parse_timezone s i c C s‚ t | ƒ t d ƒ j o t | ƒ } n t | ƒ } | o] | d j o d p d } t | ƒ } | d d } | d d d } d | | | f } n d } | t | ƒ } t i t | ƒ | ƒ } | d \ } } } } } } | p | oj | o>