Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3 2øªjùã @s¼dZddlZddlZddlmZmZddlZejd$ƒZdddd d d d gZdd dddddddddddg Z d%dd„Z dd„Z dd„Z dd „Z d!d"„Zed#kr¸ddlZddlZejejƒjƒdS)&zKfontTools.misc.timeTools.py -- tools for working with OpenType timestamps. éN)ÚdatetimeÚtimezoneépéÚMonÚTueÚWedÚThuÚFriÚSatÚSunÚJanÚFebÚMarÚAprÚMayÚJunÚJulÚAugÚSepÚOctÚNovÚDeccCs:|dkrtjƒ}dt|jt|j|jtjd|ƒf}|S)ad Convert a tuple or struct_time representing a time as returned by gmtime() or localtime() to a 24-character string of the following form: >>> asctime(time.gmtime(0)) 'Thu Jan 1 00:00:00 1970' If t is not provided, the current time as returned by localtime() is used. Locale information is not used by asctime(). This is meant to normalise the output of the built-in time.asctime() across different platforms and Python versions. In Python 3.x, the day of the month is right-justified, whereas on Windows Python 2.7 it is padded with zeros. See https://github.com/fonttools/fonttools/issues/455 Nz %s %s %2s %sz %H:%M:%S %Y)ÚtimeÚ localtimeÚDAYNAMESÚtm_wdayÚ MONTHNAMESÚtm_monÚtm_mdayÚstrftime)ÚtÚs©r#ú=/tmp/pip-build-_d5lkt3n/fonttools/fontTools/misc/timeTools.pyÚasctimes r%cCsttjtd|tƒƒƒS)Nr)r%rÚgmtimeÚmaxÚ epoch_diff)Úvaluer#r#r$ÚtimestampToString+sr*cCst|dd…jƒ\}}tj|dd…dƒ}|jtj|ƒtjd�}tj|ƒ}|j ƒ|ksdt d|dƒ‚t |j ƒƒt S)Néz %d %H:%M:%S %Y)ÚmonthÚtzinfoú"z" has inconsistent weekday)ÚsplitrÚstrptimeÚreplacerÚindexrÚutcrÚweekdayÚAssertionErrorÚintÚ timestampr()r)ZwkdayZmnthr!Z wkday_idxr#r#r$ÚtimestampFromString.s  r8cCs0tjjdƒ}|dk r t|ƒtSttjƒtƒS)NZSOURCE_DATE_EPOCH)ÚosÚenvironÚgetr6r(r)Zsource_date_epochr#r#r$Ú timestampNow6s  r<cCs t|tƒS)N)r6r()r)r#r#r$ÚtimestampSinceEpoch=sr=Ú__main__) rrrrrrrrr)N)Ú__doc__r9rrrÚcalendarÚtimegmr(rrr%r*r8r<r=Ú__name__ÚsysÚdoctestÚexitÚtestmodÚfailedr#r#r#r$Ús"