X®@ H d Z ddlZddlZddlmZ ddlmZ ddlZddlmZ n# e $ r e d w xY wddlmZ g d Z ej d ZdZdZd Zd Z e Z G d de Z G d de Z G d de Z G d de Zd Zd ZdS )z This module provides an interface to the native time zone data on Windows, including :py:class:`datetime.tzinfo` implementations. Attempting to import this module on a non-Windows platform will raise an :py:obj:`ImportError`. N)winreg) text_type)wintypesz#Running tzwin on non-Windows system )tzrangebase)tzwin tzwinlocaltzres z7SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zonesz4SOFTWARE\Microsoft\Windows\CurrentVersion\Time Zonesz4SYSTEM\CurrentControlSet\Control\TimeZoneInformationc t j d t j } t j | t t }n# t $ r t }Y nw xY w| |S N)r ConnectRegistryHKEY_LOCAL_MACHINEOpenKeyTZKEYNAMENTCloseWindowsErrorTZKEYNAME9X)handle TZKEYNAMEs o/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib/python3.11/site-packages/dateutil/tz/win.py _settzkeynamer " sx #D&*C D DF v{++11333 LLNNNs 3A A)(A)c P e Zd ZdZ ej ej ZddZ d Z d ZdS )r z} Class for accessing ``tzres.dll``, which contains timezone name related resources. .. versionadded:: 2.5.0 tzres.dllc t j d }t j t j t j t j f|j _ |j | _ t j | | _ || _ d S )Nuser32)ctypesWinDLLr HINSTANCEUINTLPWSTRc_intLoadStringWargtypes_tzres tzres_loc)selfr&