Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/pyrfc3339/__pycache__/ |
Upload File : |
o ƺ[Q � @ sL d dl mZ d dlmZmZ d dlmZ G dd� de�Zdd� Zdd � Z d S )� )�division)� timedelta�tzinfo)�deepcopyc @ s@ e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dS )�FixedOffseta� Represent a timezone with a fixed offset from UTC and no adjustment for DST. >>> FixedOffset(4,0) <UTC+04:00> >>> FixedOffset(-4,0) <UTC-04:00> >>> FixedOffset(4,30) <UTC+04:30> >>> tz = FixedOffset(-5,0) >>> tz.dst(None) datetime.timedelta(0) The class tries to do the right thing with the sign of the time zone offset: >>> FixedOffset(-9,30) <UTC-09:30> >>> FixedOffset(-9,-30) Traceback (most recent call last): ... ValueError: minutes must not be negative Offsets must thus be normalized so that the minute value is positive: >>> FixedOffset(-8,30) <UTC-08:30> c C sP t �| � |dk r td��|dk r|d9 }t||d�| _dtt| j�� | _dS )zK Create a new FixedOffset instance with the given offset. r zminutes must not be negative���)�hours�minutes�UTCN)r �__init__� ValueErrorr �_FixedOffset__offset�timezone�timedelta_seconds�_FixedOffset__name)�selfr r � r �1/usr/lib/python3/dist-packages/pyrfc3339/utils.pyr ( s �zFixedOffset.__init__c C s t d�S )zG Return offset for DST. Always returns timedelta(0). r )r �r �dtr r r �dst6 s zFixedOffset.dstc C � | j S )z* Return offset from UTC. )r r r r r � utcoffset= � zFixedOffset.utcoffsetc C r )z+ Return name of timezone. )r r r r r �tznameD r zFixedOffset.tznamec C s d� | �d ��S )Nz<{0}>)�formatr )r r r r �__repr__K s zFixedOffset.__repr__c C sF | j }|�|�}||t| �<