Sindbad~EG File Manager
�
'Μg� � �� � d Z ddlZddlZddlZddlmZ ddlZddlZd� Zd� Z G d� dej � Z G d� d ej � Ze
d
k( r ej � yy)z
Unittest for time.strftime
� N)�supportc �2 � | d dk( r| d d dz | dd z } | S )N� � �0� � )�ss �//usr/local/lib/python3.12/test/test_strftime.py�
fixasctimer s, � ���t�s�{�
�b�q�E�C�K�!�A�B�%����H� c �� � t j | � }|j t j |� |� }|j dd� }|j dd� }|j dd� }|S )z�
Escape text to deal with possible locale values that have regex
syntax while allowing regex syntax used for comparison.
z\%�%z\:�:z\?�?)�re�escape�replace)�text�ampm�new_texts r � escapestrr sf � �
�y�y���H����� � �$���6�H�����s�+�H�����s�+�H�����s�+�H��Or
c �* � e Zd Zd� Zd� Zd� Zd� Zd� Zy)�StrftimeTestc
�& � t j |� | _ t j |� }|d dk rd| _ nd| _ t j t j
|d ddddddddf � � | _ |d rt j d | _ nt j d | _ |d dkD r|d dz
| _
|| _ y |d dkD r|d | _
|| _ y d| _
|| _ y # t $ r
d| _ Y �Xw xY w) N� � z(AM|am)z(PM|pm)r � r � )�time�gmtime�gmt� localtimer �mktime�jan1�tzname�tz�AttributeError�clock12�now)�selfr* s r �_update_variableszStrftimeTest._update_variables"