ÿØÿàJFIFÿþ ÿÛC       ÿÛC ÿÀÿÄÿÄ"#QrÿÄÿÄ&1!A"2qQaáÿÚ ?Øy,æ/3JæÝ¹È߲؋5êXw²±ÉyˆR”¾I0ó2—PI¾IÌÚiMö¯–þrìN&"KgX:Šíµ•nTJnLK„…@!‰-ý ùúmë;ºgµŒ&ó±hw’¯Õ@”Ü— 9ñ-ë.²1<yà‚¹ïQÐU„ہ?.’¦èûbß±©Ö«Âw*VŒ) `$‰bØÔŸ’ëXÖ-ËTÜíGÚ3ð«g Ÿ§¯—Jx„–’U/ÂÅv_s(Hÿ@TñJÑãõçn­‚!ÈgfbÓc­:él[ðQe 9ÀPLbÃãCµm[5¿ç'ªjglå‡Ûí_§Úõl-;"PkÞÞÁQâ¼_Ñ^¢SŸx?"¸¦ùY騐ÒOÈ q’`~~ÚtËU¹CڒêV  I1Áß_ÿÙ bNc@s dZddlZddgZdZedZedZedZedZed Zed Z ie d 6ed 6ed 6ed6ed6ed6ed6Z e j Z e j dedZejdZdZdZedkrddlZejndS(s DateInterval.py Convert interval strings (in the form of 1w2d, etc) to seconds, and back again. Is not exactly about months or years (leap years in particular). Accepts (y)ear, (b)month, (w)eek, (d)ay, (h)our, (m)inute, (s)econd. Exports only timeEncode and timeDecode functions. iNtinterval_decodetinterval_encodeii<iiiimtytbtwtdthtmtscCst|d|d S(Ni(tcmp(taR((sH/opt/alt/python27/lib/python2.7/site-packages/paste/util/dateinterval.pyt"tcCsd}|}t|}xLtD]D\}}||krt||\}}|d||f7}qqW|dkrd|}n|sdS|rd|}n|S(sEncodes a number of seconds (representing a time interval) into a form like 1h2d3s. >>> interval_encode(10) '10s' >>> interval_encode(493939) '5d17h12m19s' R s%i%sit-t0t+(tabst timeOrderedtdivmod(tsecondst include_signRtorigtchartamountti((sH/opt/alt/python27/lib/python2.7/site-packages/paste/util/dateinterval.pyR$s      s[0-9]+[a-zA-Z]cCsd}d}|j}|jdr:|d}d}n|jdrV|d}nxjt|tD]Y}|jddj}tj|sqfn|t|jdd t|7}qfW|S(sDecodes a number in the format 1h4d3m (1 hour, 3 days, 3 minutes) into a number of seconds >>> interval_decode('40s') 40 >>> interval_decode('10000s') 10000 >>> interval_decode('3d1w45s') 864045 iiR iR( tstript startswitht allMatchest_timeREtgrouptlowert timeValuesthas_keytint(RttimetsigntmatchR((sH/opt/alt/python27/lib/python2.7/site-packages/paste/util/dateinterval.pyR=s     )cCs`d}t|}g}|j||}x/|r[|j||j||j}q-W|S(s1Return a list of matches for regex in source i(tlentsearchtappendtend(tsourcetregextposR(trvR$((sH/opt/alt/python27/lib/python2.7/site-packages/paste/util/dateinterval.pyRYs   t__main__(t__doc__tret__all__tsecondtminutethourtdaytweektmonthtyearRtitemsRtsorttFalseRtcompileRRRt__name__tdoctestttestmod(((sH/opt/alt/python27/lib/python2.7/site-packages/paste/util/dateinterval.pyt s4