| Server IP : 54.37.205.81 / Your IP : 216.73.216.76 Web Server : nginx/1.22.1 System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64 User : debian ( 1000) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/nltk/twitter/__pycache__/ |
Upload File : |
�
T�c� � � � d Z ddlZddlmZmZ ddlmZmZmZm Z G d� de � � Z
e
� � Z G d� de� � � Z G d
� de� � Z
dS )zY
This module provides an interface for TweetHandlers, and support for timezone
handling.
� N)�ABCMeta�abstractmethod)�datetime� timedelta�timezone�tzinfoc �t � e Zd ZdZ eej �� � Zej r eej �� � Z
neZ
d� ZdS )�LocalTimezoneOffsetWithUTCa�
This is not intended to be a general purpose class for dealing with the
local timezone. In particular:
* it assumes that the date passed has been created using
`datetime(..., tzinfo=Local)`, where `Local` is an instance of
the object `LocalTimezoneOffsetWithUTC`;
* for such an object, it returns the offset with UTC, used for date comparisons.
Reference: https://docs.python.org/3/library/datetime.html
)�secondsc � � | j S )z2
Access the relevant time offset.
)� DSTOFFSET)�self�dts �2/usr/lib/python3/dist-packages/nltk/twitter/api.py� utcoffsetz$LocalTimezoneOffsetWithUTC.utcoffset'