
    ^f                     .    d Z ddlmZ d Zd Zd Zd ZdS )zT
Helper functions that convert strftime formats into more readable representations.
    )ISO_8601c                 |    d                     |                               t          d          }t          |          S )N, z/YYYY-MM-DDThh:mm[:ss[.uuuuuu]][+HH:MM|-HH:MM|Z]joinreplacer   humanize_strptimeformatsformats     X/var/www/html/env/lib/python3.11/site-packages/rest_framework/utils/humanize_datetime.pydatetime_formatsr      s9    YYw''9 F V$$$    c                 |    d                     |                               t          d          }t          |          S )Nr   z
YYYY-MM-DDr   r
   s     r   date_formatsr      s1    YYw'',??FV$$$r   c                 |    d                     |                               t          d          }t          |          S )Nr   zhh:mm[:ss[.uuuuuu]]r   r
   s     r   time_formatsr      s2    YYw''2GHHFV$$$r   c                     dddddddddd	d
ddddd}|                                 D ]\  }}|                     ||          } | S )NYYYYYYMMz	[Jan-Dec]z[January-December]DDhhmmssuuuuuuz	[Mon-Sun]z[Monday-Sunday]z[AM|PM]z[+HHMM|-HHMM])z%Yz%yz%mz%bz%Bz%dz%Hz%Iz%Mz%Sz%fz%az%Az%pz%z)itemsr   )format_stringmappingkeyvals       r   r	   r	      sw     " G" MMOO 8 8S%--c377r   N)__doc__rest_frameworkr   r   r   r   r	    r   r   <module>r%      si     $ # # # # #% % %% % %
% % %
    r   