| Server IP : 173.249.148.11 / Your IP : 216.73.216.179 Web Server : Apache/2.4.68 (AlmaLinux) System : Linux developmentwebsite.ca 4.18.0-553.168.1.el8_10.x86_64 #1 SMP Thu Sep 24 18:05:46 UTC 2026 x86_64 User : devinter ( 1006) PHP Version : 8.3.35 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /snap/certbot/current/lib/python3.12/site-packages/pyrfc3339/__pycache__/ |
Upload File : |
�
��j� � � � d dl m Z de defd�Zy)� )�datetime�dt�returnc � � | j �J �| j }|j | � }|�J �|j � S )a�
Return the UTC offset for an aware :class:`datetime.datetime` in seconds.
>>> from datetime import datetime
>>> from zoneinfo import ZoneInfo
>>> z = ZoneInfo('US/Eastern')
>>> dt = datetime(2024, 11, 5, 19, 7, 6, tzinfo=z)
>>> datetime_utcoffset(dt)
-18000.0
>>> dt = datetime(2024, 11, 5, 19, 7, 6)
>>> datetime_utcoffset(dt)
Traceback (most recent call last):
...
AssertionError
:param datetime.datetime dt: a :class:`~datetime.datetime` instance; must be aware (that is, have a timezone attached)
:return: the UTC offset of the supplied :class:`~datetime.datetime` in seconds
:rtype: float
)�tzinfo� utcoffset�
total_seconds)r �tz�offsets �K/root/parts/certbot/install/lib/python3.12/site-packages/pyrfc3339/utils.py�datetime_utcoffsetr
sF � �. �9�9� � � � ���B�
�\�\�"�
�F��������!�!� N)r �floatr
� r r �<module>r s �� �"�8� "�� "r