⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
dateutil
/
__pycache__
/
View File Name :
utils.cpython-312.pyc
i)f 8 d Z ddlmZ ddlmZmZ ddZd Zd Zy) zs This module offers general convenience and utility functions for dealing with datetimes. .. versionadded:: 2.7.0 )unicode_literals)datetimetimeNc t j | }t j |j t d| S )a Returns a :py:class:`datetime` representing the current day at midnight :param tzinfo: The time zone to attach (also used to determine the current day). :return: A :py:class:`datetime.datetime` object representing the current day at midnight. r tzinfo)r nowcombinedater )r dts 0/usr/lib/python3/dist-packages/dateutil/utils.pytodayr s2 f BBGGItAf'=>> c B | j | S | j | S )a Sets the ``tzinfo`` parameter on naive datetimes only This is useful for example when you are provided a datetime that may have either an implicit or explicit time zone, such as when parsing a time zone string. .. doctest:: >>> from dateutil.tz import tzoffset >>> from dateutil.parser import parse >>> from dateutil.utils import default_tzinfo >>> dflt_tz = tzoffset("EST", -18000) >>> print(default_tzinfo(parse('2014-01-01 12:30 UTC'), dflt_tz)) 2014-01-01 12:30:00+00:00 >>> print(default_tzinfo(parse('2014-01-01 12:30'), dflt_tz)) 2014-01-01 12:30:00-05:00 :param dt: The datetime on which to replace the time zone :param tzinfo: The :py:class:`datetime.tzinfo` subclass instance to assign to ``dt`` if (and only if) it is naive. :return: Returns an aware :py:class:`datetime.datetime`. r )r replace)r r s r default_tzinfor s$ : yy zzz((r c D t | }| |z }| |cxk xr |k S c S )zn Useful for comparing two datetimes that may have a negligible difference to be considered equal. )abs)dt1dt2delta differences r within_deltar @ s. JEsJ6Z(5((((r )N)__doc__ __future__r r r r r r r r
r s" ( # ? )F)r