Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/tempora/__pycache__/utc.cpython-39.pyc
Ðазад
a n�h � @ sn d Z ddlZddlZg d�Zejd�dd�Zejejjejj d�Zejejejj d�Zejej ejj d�Z dS ) a{ Facilities for common time operations in UTC. Inspired by the `utc project <https://pypi.org/project/utc>`_. >>> dt = now() >>> dt == fromtimestamp(dt.timestamp()) True >>> dt.tzinfo datetime.timezone.utc >>> from time import time as timestamp >>> now().timestamp() - timestamp() < 0.1 True >>> (now() - fromtimestamp(timestamp())).total_seconds() < 0.1 True >>> datetime(2018, 6, 26, 0).tzinfo datetime.timezone.utc >>> time(0, 0).tzinfo datetime.timezone.utc Now should be affected by freezegun. >>> freezer = getfixture('freezer') >>> freezer.move_to('1999-12-31 17:00:00 -0700') >>> print(now()) 2000-01-01 00:00:00+00:00 � N)�now� fromtimestamp�datetime�time)�returnc C s t j�t jj�S )N)�stdr r �timezone�utc� r r �{/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/tempora/utc.pyr '