
    Nwg                     ,    d Z ddlmZ d Zd Zd Zd Zy)zT
Helper functions that convert strftime formats into more readable representations.
    )ISO_8601c                 b    dj                  |       j                  t        d      }t        |      S )N, z/YYYY-MM-DDThh:mm[:ss[.uuuuuu]][+HH:MM|-HH:MM|Z]joinreplacer   humanize_strptimeformatsformats     ]/var/www/horilla/myenv/lib/python3.12/site-packages/rest_framework/utils/humanize_datetime.pydatetime_formatsr      s.    YYw''9F V$$    c                 b    dj                  |       j                  t        d      }t        |      S )Nr   z
YYYY-MM-DDr   r
   s     r   date_formatsr      s(    YYw'',?FV$$r   c                 b    dj                  |       j                  t        d      }t        |      S )Nr   zhh:mm[:ss[.uuuuuu]]r   r
   s     r   time_formatsr      s)    YYw''2GHFV$$r   c                 ~    dddddddddd	d
ddddd}|j                         D ]  \  }}| j                  ||      }  | 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	      sk     "G" MMO 8S%--c378r   N)__doc__rest_frameworkr   r   r   r   r	    r   r   <module>r%      s#    $%%
%
r   