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¼ d Z ddlZddlZddlmZmZ ddlZejd$ƒZdddd d
ddgZdd
dddddddddddg
Z d%dd„Z
dd„ Zdd„ Zdd „ 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ÚDecc C s: | dkrt jƒ } dt| j t| j | jt jd| ƒ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Úasctime s r% c C s t tjtd| t ƒƒƒS )Nr )r% r ÚgmtimeÚmaxÚ
epoch_diff)Úvaluer# r# r$ ÚtimestampToString+ s r* c C st | d d… 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
r8 c C s0 t jjdƒ} | d k r t| ƒt S ttjƒ t ƒS )NZSOURCE_DATE_EPOCH)ÚosÚenvironÚgetr6 r( r )Zsource_date_epochr# r# r$ ÚtimestampNow6 s r<