o
    g                     @   s4   d Z ddlmZ dd Zdd Zdd Zd	d
 ZdS )zT
Helper functions that convert strftime formats into more readable representations.
    )ISO_8601c                 C      d | td}t|S )N, z/YYYY-MM-DDThh:mm[:ss[.uuuuuu]][+HH:MM|-HH:MM|Z]joinreplacer   humanize_strptimeformatsformat r   c/var/www/rescue_company/venv/lib/python3.10/site-packages/rest_framework/utils/humanize_datetime.pydatetime_formats   s
   
r   c                 C   r   )Nr   z
YYYY-MM-DDr   r	   r   r   r   date_formats      r   c                 C   r   )Nr   zhh:mm[:ss[.uuuuuu]]r   r	   r   r   r   time_formats   r   r   c                 C   sF   dddddddddd	d
ddddd}|  D ]
\}}| ||} q| 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valr   r   r   r      s&   r   N)__doc__rest_frameworkr   r   r   r   r   r   r   r   r   <module>   s    