Hacked By AnonymousFox
�
�܋f � � � d Z ddlZddlZ ej d� � Z G d� dej � � Z ej ej �� � Zej r ej ej
�� � ZneZeez
Z G d� dej � � Z
e
� � ZdS )z�tzinfo implementations for psycopg2
This module holds two different tzinfo implementations that can be used as
the 'tzinfo' argument to datetime constructors, directly passed to psycopg
functions or used to set the .tzinfo_factory attribute in cursors.
� Nc �b � � e Zd ZdZdZeZi Zdd�Zd� fd� Z d� Z
d� Zd� Zd� Z
d � Zd
� Zd� Z� xZS )
�FixedOffsetTimezonea� Fixed offset in minutes east from UTC.
This is exactly the implementation__ found in Python 2.3.x documentation,
with a small change to the `!__init__()` method to allow for pickling
and a default name in the form ``sHH:MM`` (``s`` is the sign.).
The implementation also caches instances. During creation, if a
FixedOffsetTimezone instance has previously been created with the same
offset and name that instance will be returned. This saves memory and
improves comparability.
.. versionchanged:: 2.9
The constructor can take either a timedelta or a number of minutes of
offset. Previously only minutes were supported.
.. __: https://docs.python.org/library/datetime.html
Nc � � |�6t |t j � � st j |�� � }|| _ |� || _ d S d S )N)�minutes)�
isinstance�datetime� timedelta�_offset�_name)�self�offset�names �^/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/psycopg2/tz.py�__init__zFixedOffsetTimezone.__init__<