ó
    sñ:i­  ã                   ó:   • S r SSKJr  SSKJrJr  SS jrS rS rg)	zs
This module offers general convenience and utility functions for dealing with
datetimes.

.. versionadded:: 2.7.0
é    )Úunicode_literals)ÚdatetimeÚtimeNc                 óˆ   • [         R                  " U 5      n[         R                  " UR                  5       [	        SU S95      $ )a  
Returns a :py:class:`datetime` representing the current day at midnight

:param tzinfo:
    The time zone to attach (also used to determine the current day).

:return:
    A :py:class:`datetime.datetime` object representing the current day
    at midnight.
r   ©Útzinfo)r   ÚnowÚcombineÚdater   )r   Údts     ÚQ/srv/projetos/modelo_ml_acdoc/venv/lib/python3.13/site-packages/dateutil/utils.pyÚtodayr      s2   € ô 
�Š�fÓ	€BÜ×Ò˜BŸG™G›I¤t¨A°fÑ'=Ó>Ð>ó    c                 ó>   • U R                   b  U $ U R                  US9$ )aP  
Sets the ``tzinfo`` parameter on naive datetimes only

This is useful for example when you are provided a datetime that may have
either an implicit or explicit time zone, such as when parsing a time zone
string.

.. doctest::

    >>> from dateutil.tz import tzoffset
    >>> from dateutil.parser import parse
    >>> from dateutil.utils import default_tzinfo
    >>> dflt_tz = tzoffset("EST", -18000)
    >>> print(default_tzinfo(parse('2014-01-01 12:30 UTC'), dflt_tz))
    2014-01-01 12:30:00+00:00
    >>> print(default_tzinfo(parse('2014-01-01 12:30'), dflt_tz))
    2014-01-01 12:30:00-05:00

:param dt:
    The datetime on which to replace the time zone

:param tzinfo:
    The :py:class:`datetime.tzinfo` subclass instance to assign to
    ``dt`` if (and only if) it is naive.

:return:
    Returns an aware :py:class:`datetime.datetime`.
r   )r   Úreplace)r   r   s     r   Údefault_tzinfor      s$   € ð: 
‡y�yÑØˆ	à�z‰z ˆzÐ(Ð(r   c                 óL   • [        U5      nX-
  nU* Us=:*  =(       a    U:*  $ s  $ )zb
Useful for comparing two datetimes that may have a negligible difference
to be considered equal.
)Úabs)Údt1Údt2ÚdeltaÚ
differences       r   Úwithin_deltar   @   s/   € ô
 �‹J€EØ‘€JØˆ6�Z×(Ó( 5Ñ(Ð(Ñ(Ð(r   )N)Ú__doc__Ú
__future__r   r   r   r   r   r   © r   r   Ú<module>r      s"   ðñõ (ç #ô?ò  )óF)r   