|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/usr/lib/python2.4/site-packages/_xmlplus/utils/ |
Upload File : |
mò
Ż$?c @ 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>