
    R
h                        U d Z ddlmZ ddlZddlmZmZ ddlmZ ddl	m
Z
  ej        d          Zej        ej        d	Zd
ed<   ddZdS )z
Timezone utility functions.
    )annotationsN)timezonetzinfo   )PGconn)ZoneInfopsycopg)Ns   UTCzdict[bytes | None, tzinfo]
_timezonespgconnPGconn | Nonereturnr   c           	        | r|                      d          nd}	 t          |         S # t          $ r |r|                                nd}	 t	          |          }n# t          t
          f$ r* t                              d|           t          j	        }Y nQt          $ rE}t                              d|t          |          j        |           t          j	        }Y d}~nd}~ww xY w|t          |<   |cY S w xY w)z=Return the Python timezone info of the connection's timezone.s   TimeZoneNUTCz-unknown PostgreSQL timezone: %r; will use UTCz>error handling PostgreSQL timezone: %r; will use UTC (%s - %s))parameter_statusr
   KeyErrordecoder   OSErrorloggerwarningr   utc	Exceptiontype__name__)r   tznamesnameziexs        V/var/www/html/01_SiteInternet/03_Maps/venv/lib/python3.11/site-packages/psycopg/_tz.py
get_tzinfor      s   5;EV$$[111F&!!   #)4u	!%BB'" 	 	 	NNJERRRBBB 	 	 	NNPR!	   BBBBBB	  
6			#sE   ( "C5AC58C#C5	C#;CC5C##C54C5)r   r   r   r   )__doc__
__future__r   loggingdatetimer   r   pq.abcr   _compatr   	getLoggerr   r   r
   __annotations__r        r   <module>r*      s      # " " " " "  % % % % % % % %            		9	%	% ,L* *
         r)   