ó
    IT–hÒ
  ã                   ó*   • S r SSKJrJr  S\S\4S jrg)z:Contains utilities to handle datetimes in Huggingface Hub.é    )ÚdatetimeÚtimezoneÚdate_stringÚreturnc                 ó:  •  U R                  S5      (       a1  SU ;  a	  U SS S-   n O"U SS R                  S5      u  pU SUSS S S3n [        R                  " U S5      R	                  [
        R                  S	9$ ! [         a  n[        S
U  S35      UeSnAff = f)ae  
Parses a date_string returned from the server to a datetime object.

This parser is a weak-parser is the sense that it handles only a single format of
date_string. It is expected that the server format will never change. The
implementation depends only on the standard lib to avoid an external dependency
(python-dateutil). See full discussion about this decision on PR:
https://github.com/huggingface/huggingface_hub/pull/999.

Example:
    ```py
    > parse_datetime('2022-08-19T07:19:38.123Z')
    datetime.datetime(2022, 8, 19, 7, 19, 38, 123000, tzinfo=timezone.utc)
    ```

Args:
    date_string (`str`):
        A string representing a datetime returned by the Hub server.
        String is expected to follow '%Y-%m-%dT%H:%M:%S.%fZ' pattern.

Returns:
    A python datetime object.

Raises:
    :class:`ValueError`:
        If `date_string` cannot be parsed.
ÚZÚ.Néÿÿÿÿz.000000Zé   z0<6z%Y-%m-%dT%H:%M:%S.%fZ)ÚtzinfozCannot parse 'zS' as a datetime. Date string is expected to follow '%Y-%m-%dT%H:%M:%S.%fZ' pattern.)ÚendswithÚsplitr   ÚstrptimeÚreplacer   ÚutcÚ
ValueError)r   ÚbaseÚfractionÚes       ÚW/var/www/auris/envauris/lib/python3.13/site-packages/huggingface_hub/utils/_datetime.pyÚparse_datetimer      sÃ   € ð8à×Ñ ×$Ñ$à˜+Ó%à)¨#¨2Ð.°Ñ;‘ð "-¨S¨bÐ!1×!7Ñ!7¸Ó!<‘à!%  a¨°°!¨°SÐ'9¸Ð;ä× Ò  Ð.EÓF×NÑNÔV^×VbÑVbÐNÐcÐcøÜó ÜØ˜[˜Mð *7ð 7ó
ð ð	ûðús   ‚A8A; Á;
BÂBÂBN)Ú__doc__r   r   Ústrr   © ó    r   Ú<module>r      s!   ðñ Aç 'ð/ ð /¨õ /r   