MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/3/root/proc/2/task/2/root/proc/self/root/usr/lib/python2.4/tzparse.pyo
mò
‚=5Dc@sldZdkZeideƒdZdad„Zd„Zd„Z	d„Z
e	ƒd„Zd	„ZdS(
sParse a timezone specification.Ns?The tzparse module is obsolete and will disappear in the futuresU^([A-Z][A-Z][A-Z])([-+]?[0-9]+)([A-Z][A-Z][A-Z]);([0-9]+)/([0-9]+),([0-9]+)/([0-9]+)$cCsÛtdjodk}|itƒanti|ƒ}|p
td‚ng}x-t	ddƒD]}|i|i|ƒƒqbWx"d	D]}t
||ƒ||<q‰W|\}}	}}}}
}||	||||
|fS(
s‡Given a timezone spec, return a tuple of information
    (tzname, delta, dstname, daystart, hourstart, dayend, hourend),
    where 'tzname' is the name of the timezone, 'delta' is the offset
    in hours from GMT, 'dstname' is the name of the daylight-saving
    timezone, and 'daystart'/'hourstart' and 'dayend'/'hourend'
    specify the starting and ending points for daylight saving time.Nsnot the TZ syntax I understandiiiiii(iiiii(ttzprogtNonetretcompilettzpattmatchttzstrt
ValueErrortsubstrangetitappendtgrouptevalttznametdeltatdstnametdaystartt	hourstarttdayendthourend(RRRRR
RRRRRRR((t/usr/lib/python2.4/tzparse.pyttzparses"
	
c	Cs½dk}|\}}
}}}}}|i	||
dƒ\	}}	}}
}}}}}||f|d|
fjo||fjno|}|
d}
n||	||
|||||f	S(sÄGiven a Unix time in seconds and a tuple of information about
    a timezone as returned by tzparse(), return the local time in the
    form (year, month, day, hour, min, sec, yday, wday, tzname).Nii(ttimetparamsRRRRRRRtgmtimetsecstyeartmonthtdaysthourstminstydaytwdaytisdst(RRRR"RR!RRRRRRRRR RRR((Rttzlocaltime&s	24cCsXdk}|id}t|ƒatddatdadatdtdfadS(sBDetermine the current timezone from the "TZ" environment variable.NtTZiiii(	tostenvironRRttzparamsttimezonetaltzonetdaylightR(RR%((Rttzset3s	

c	Cs‡dk}t\}
}}}}}}|i	||dƒ\	}}}}	}}}
}}||f|
d|	fjo||fjnS(seReturn true if daylight-saving time is in effect for the given
    Unix time in the current timezone.Nii(RR'RRRRRRRRRRRRRRR R!R"(RRR"RR!RRRRRRRRR RRR((RR">s
	2cCs
t|tƒS(s+Get the local time in the current timezone.N(R#RR'(R((Rt	localtimeJsc
Cs¯dkl}l}dk}dk}|iƒ}	t|	ƒ}|d d}dG|	GdG||ƒG|dGH|	|	dd}	|ido|	t	|idƒ}	n||	ƒ}|d d}d	G|	GdG||ƒGd
G|dGH|	|ddd}t|ƒ}|d d}dG|GdG||ƒG|dGHxwtd
dƒtddƒD]Y}||dd}t|ƒ}|d d}dG|GdG|GdG||ƒG|dGHqNWdS(N(sasctimesgmtimeiÿÿÿÿisnow =t=iiisgmtime =syday =iþÿÿÿsjan1 =iUi_i	isd =st =(i(i(i(i(RtasctimeRtsystnowR,txttmtargvR
tjan1R	tdtt(
R5R.R4RR/R2R6RR1R0((RttestNs,#(
t__doc__twarningstwarntDeprecationWarningRRRRR#R+R"R,R7(R+RR9R"RR7R#R,((Rt?s