o
    ?8¾\î  ã                   @   s:   d Z ddlmZmZ edƒZG dd„ deƒZeddƒZdS )z$Timezone related utilities for BSON.é    )Ú	timedeltaÚtzinfoc                   @   s8   e Zd ZdZdd„ Zdd„ Zdd„ Zdd	„ Zd
d„ ZdS )ÚFixedOffsetzýFixed offset timezone, in minutes east from UTC.

    Implementation based from the Python `standard library documentation
    <http://docs.python.org/library/datetime.html#tzinfo-objects>`_.
    Defining __getinitargs__ enables pickling / copying.
    c                 C   s(   t |tƒr	|| _nt|d�| _|| _d S )N)Úminutes)Ú
isinstancer   Ú_FixedOffset__offsetÚ_FixedOffset__name)ÚselfÚoffsetÚname© r   ú>/var/www/html/env/lib/python3.10/site-packages/bson/tz_util.pyÚ__init__   s   

zFixedOffset.__init__c                 C   s   | j | jfS ©N)r   r   )r	   r   r   r   Ú__getinitargs__&   s   zFixedOffset.__getinitargs__c                 C   ó   | j S r   )r   ©r	   Údtr   r   r   Ú	utcoffset)   ó   zFixedOffset.utcoffsetc                 C   r   r   )r   r   r   r   r   Útzname,   r   zFixedOffset.tznamec                 C   s   t S r   )ÚZEROr   r   r   r   Údst/   s   zFixedOffset.dstN)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   r   r   r      s    r   ÚUTCN)r   Údatetimer   r   r   r   Úutcr   r   r   r   Ú<module>   s   
