mò %U²Ic@sidkZdkZdkZdkZdkZdklad„Zd„Zd„Z d„Z eƒdS(N(sverbosecCsÊy)dk}|iii|iiiƒWn/tj o#dk}|i|idƒnXt i ƒ}t |ƒda xLt ddƒD];}x2t dƒD]$}t |||dddƒqšWq‡WdS( NtCiiûÿÿÿiiidii(tjavatutiltLocalet setDefaulttUSt ImportErrortlocalet setlocaletLC_TIMEttimetnowtstrftesttverbosetrangetjti(RRRRR ((t//data/zmath/lib/python2.4/test/test_strftime.pytmains      cCsdti|ƒ}|iti|ƒ|ƒ}|iddƒ}|iddƒ}|iddƒ}|S(sEscape text to deal with possible locale values that have regex syntax while allowing regex syntax used for the comparison.s\%t%s\:t:s\?t?N(tretescapettexttnew_texttreplacetampm(RRR((Rt escapestrsc Cs‹todGti|ƒGHntt|ƒƒd }ti|ƒ}ti |ƒ}|ddjo d}nd}ti ti |dddddddddf ƒƒ} y-|d oti d}nti d}Wntj o d }nX|ddjo|dd} n&|ddjo|d} nd} d ti|d d fdti|d dfdti|ddfdti|ddfdd|ddfdd|ddfdd| dfdd|ddfd d|dd!fd"d|d#d$fd%|d&fd'd|d(d)fd*d|d| d dd+fd,d-d|d dd.fd/d|d| d dddd0fd1d2|d|d#|d(fd3fd4d|dd5d6fd7d|dd8fd9d:d;ff}d<tti|ƒƒd=fd>d?|d|d|dd5fd@fdAdB|dCfdDd?|d|d|dd5fdEfdFdG|ddHfdIti|ddfdJdG|ddKfdLdMdNfdOdP| |d#|d(|fdQfdRdS|d|d#fdTfdB|dUfdVdWdXfdYd2|d|d#|d(fd3fdZd|dd5d[ff}to#d\titiiƒdfGHnxÙ|D]Ñ}yti|d|ƒ}Wn)t!j o} d]|dG| GHq‡nXt#i$t%|d|ƒ|ƒoq‡n| p|dd:jod^|d|dfGHn+d_|d|dfGHd`|d|fGHq‡Wx(|D] }yti|d|ƒ}WnCt!j o7}to$da|d|dt|ƒfGHnqcnXt#i$t%|d|ƒ|ƒo&todb|d|dfGHnnu| p|dd:jo&todc|d|dfGHnn6to.dd|d|dfGHd`|d|fGHnqcWdS(eNsstrftime test foriÿÿÿÿii s(AM|am)s(PM|pm)iiits%aisabbreviated weekday names%Asfull weekday names%bsabbreviated month names%Bsfull month names%ds%02disday of month as number (00-31)s%Hs hour (00-23)s%Is hour (01-12)s%js%03disjulian day (001-366)s%msmonth as number (01-12)s%Misminute, (00-59)s%psAM or PM as appropriates%Sisseconds of current time (00-60)s%Us!week number of the year (Sun 1st)s%ws0?%dsweekday as a number (Sun 1st)s%Ws!week number of the year (Mon 1st)s%Xs%02d:%02d:%02ds%H:%M:%Ss%yidsyear without centurys%Ysyear with centurys%%Rssingle percent signs%csnear-asctime() formats%xs%02d/%02d/%02ds%m/%d/%y %H:%M:%Ss%Zs%sstime zone names%Dsmm/dd/yys%es%2ds,day of month as number, blank padded ( 0-31)s%hs%kshour, blank padded ( 0-23)s%ns snewline characters%rs%02d:%02d:%02d %ss %I:%M:%S %ps%Rs %02d:%02ds%H:%Msseconds since the Epoch in UCTs%ts s tab characters%Ts%3ys.year without century rendered using fieldwidths/Strftime test, platform: %s, Python version: %ss Standard '%s' format gave error:s*Does not support standard '%s' format (%s)sConflict for %s (%s):s Expected %s, but got %ss*Error for nonstandard '%s' format (%s): %ss%Supports nonstandard '%s' format (%s)s+Does not appear to support '%s' format (%s)s*Conflict for nonstandard '%s' format (%s):(&R R tctimeR tstrtlongtnowsecstgmtimetgmtt localtimeRtmktimetjan1ttznamettztAttributeErrortclock12tcalendartday_abbrtday_namet month_abbrt month_namet expectationst fixasctimetasctimetnonstandard_expectationstsystplatformtversiontsplittetstrftimetresultt ValueErrorterrorRtmatchR( R R:R(R0R#R3R8RR!R&R*R<((RR )sp 7  ÿ¸ÿf# $ cCs/|ddjo|d d|d}n|S(Nit t0i (ts(R@((RR1™s( R R+R4tosRttest.test_supportR RRR R1( RR R4RR1R R+RRA((RRs -   p