�
��g� � �� � d Z ddlZddlZddlmZmZ ddlZ ej d� � Zg d�Zg d�Z d
d�Z
d� Zd � Zd
� Z
d� Zedk r,ddlZddlZ ej ej � � j � � dS dS )zKfontTools.misc.timeTools.py -- tools for working with OpenType timestamps.
� N)�datetime�timezone) ip � r r r r r r r )�Mon�Tue�Wed�Thu�Fri�Sat�Sun)
N�Jan�Feb�Mar�Apr�May�Jun�Jul�Aug�Sep�Oct�Nov�Decc
� � | �t j � � } t | j �dt | j �d| j d�dt j d| � � ��}|S )a�
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
N� z>2z%H:%M:%S %Y)�time� localtime�DAYNAMES�tm_wday�
MONTHNAMES�tm_mon�tm_mday�strftime)�t�ss �h/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/fontTools/misc/timeTools.py�asctimer&