File manager - Edit - /usr/local/CyberPanel/lib/python3.10/site-packages/dateutil/tz/__pycache__/win.cpython-310.pyc
Back
o �h�2 � @ s� d Z ddlZddlZddlmZ ddlmZ zddlZddlmZ W n e y- e d��w ddlmZ g d �Z e�d �ZdZdZd Zdd� Ze� ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Zdd� Zdd� 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� tzwinlocal�tzres� z7SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zonesz4SOFTWARE\Microsoft\Windows\CurrentVersion\Time Zonesz4SYSTEM\CurrentControlSet\Control\TimeZoneInformationc C sJ t �d t j�} zt �| t��� t}W n ty t}Y nw | �� |S �N)r �ConnectRegistry�HKEY_LOCAL_MACHINE�OpenKey�TZKEYNAMENT�Close�WindowsError�TZKEYNAME9X)�handle� TZKEYNAME� r �E/usr/local/CyberPanel/lib/python3.10/site-packages/dateutil/tz/win.py� _settzkeyname"