mò
­fIc           @   si   d  k  Z  d  k Z d  k Z d  k Z d  k Z d k l a d „  Z d „  Z d „  Z	 d „  Z
 e ƒ  d  S(   N(   s   verbosec          C   sÊ   y) d  k  }  |  i i i |  i i i ƒ Wn/ t j
 o# d  k } | i | i d ƒ n Xt	 i	 ƒ  } t | ƒ d a xL t d d ƒ D]; } x2 t d ƒ D]$ } t | | | d d d ƒ qš Wq‡ Wd  S(	   Nt   Ci    iûÿÿÿi   i   id   i   i  (   t   javat   utilt   Localet
   setDefaultt   USt   ImportErrort   localet	   setlocalet   LC_TIMEt   timet   nowt   strftestt   verboset   ranget   jt   i(   R   R   R   R   R   (    (    t/   /mit/python/lib/python2.4/test/test_strftime.pyt   main   s     	 	
  c         C   sd   t  i |  ƒ } | i t  i | ƒ | ƒ } | i d d ƒ } | i d d ƒ } | i d d ƒ } | S(   s   Escape 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(   t   ret   escapet   textt   new_textt   replacet   ampm(   R   R   R   (    (    R   t	   escapestr   s     c         C   s‹  t  o d Gt i |  ƒ GHn t t |  ƒ ƒ d  } t i |  ƒ } t i	 |  ƒ }  |  d d j  o
 d } n d } t i	 t i |  d d d d d d d d d f	 ƒ ƒ }	 y- |  d	 o t i d } n t i d } Wn t j
 o d
 } n X|  d d j o |  d d }
 n& |  d d j o |  d }
 n d }
 d t i |  d d f d t i |  d d f d t i |  d d f d t i |  d d f d d |  d d f d d |  d d f d d |
 d f d d |  d d f d  d |  d d! f d" d |  d# d$ f d% | d& f d' d |  d( d) f d* d |  d |	 d d d+ f d, d- d |  d d d. f d/ d |  d |	 d d d d d0 f d1 d2 |  d |  d# |  d( f d3 f d4 d |  d d5 d6 f d7 d |  d d8 f d9 d: d; f f } d< t t i |  ƒ ƒ d= f d> d? |  d |  d |  d d5 f d@ f dA dB | dC f dD d? |  d |  d |  d d5 f dE f dF dG |  d dH f dI t i |  d d f dJ dG |  d dK f dL dM dN f dO dP |
 |  d# |  d( | f dQ f dR dS |  d |  d# f dT f dB | dU f dV dW dX f dY d2 |  d |  d# |  d( f d3 f dZ d |  d d5 d[ f f } t  o# d\ t i t i i ƒ  d f GHn xÙ | D]Ñ } y t i | d |  ƒ } Wn) t! j
 o } d] | d G| GHq‡n Xt# i$ t% | d | ƒ | ƒ o q‡n | p | d d: j o d^ | d | d f GHn+ d_ | d | d f GHd` | d | f GHq‡Wx(| D] } y t i | d |  ƒ } WnC t! j
 o7 } t  o$ da | d | d t | ƒ f GHn qcn Xt# i$ t% | d | ƒ | ƒ o& t  o db | d | d f GHn nu | p | d d: j o& t  o dc | d | d f GHn n6 t  o. dd | d | d f GHd` | d | f GHn qcWd  S(e   Ns   strftime test foriÿÿÿÿi   i   s   (AM|am)s   (PM|pm)i    i   i   t    s   %ai   s   abbreviated weekday names   %As   full weekday names   %bs   abbreviated month names   %Bs   full month names   %ds   %02di   s   day of month as number (00-31)s   %Hs   hour (00-23)s   %Is   hour (01-12)s   %js   %03di   s   julian day (001-366)s   %ms   month as number (01-12)s   %Mi   s   minute, (00-59)s   %ps   AM or PM as appropriates   %Si   s   seconds of current time (00-60)s   %Us!   week number of the year (Sun 1st)s   %ws   0?%ds   weekday as a number (Sun 1st)s   %Ws!   week number of the year (Mon 1st)s   %Xs   %02d:%02d:%02ds   %H:%M:%Ss   %yid   s   year without centurys   %Ys   year with centurys   %%R   s   single percent signs   %cs   near-asctime() formats   %xs   %02d/%02d/%02ds   %m/%d/%y %H:%M:%Ss   %Zs   %ss   time zone names   %Ds   mm/dd/yys   %es   %2ds,   day of month as number, blank padded ( 0-31)s   %hs   %ks   hour, blank padded ( 0-23)s   %ns   
s   newline characters   %rs   %02d:%02d:%02d %ss   %I:%M:%S %ps   %Rs	   %02d:%02ds   %H:%Ms   seconds 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)s   Conflict 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
   t   ctimeR   t   strt   longt   nowsecst   gmtimet   gmtt	   localtimeR   t   mktimet   jan1t   tznamet   tzt   AttributeErrort   clock12t   calendart   day_abbrt   day_namet
   month_abbrt
   month_namet   expectationst
   fixasctimet   asctimet   nonstandard_expectationst   syst   platformt   versiont   splitt   et   strftimet   resultt
   ValueErrort   errorR   t   matchR   (   R   R:   R(   R0   R#   R3   R8   R   R!   R&   R*   R<   (    (    R   R   )   sp     
7   ÿ ¸ÿ f#    $ c         C   s/   |  d d j o |  d  d |  d }  n |  S(   Ni   t    t   0i	   (   t   s(   R@   (    (    R   R1   ™   s    (   R
   R+   R4   t   osR   t   test.test_supportR   R   R   R   R1   (	   R   R   R4   R   R1   R
   R+   R   RA   (    (    R   R      s   -		
	p	