Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/tempora/__pycache__/schedule.cpython-39.pyc
Ðазад
a n�hk � @ s� d Z ddlmZ ddlZddlZddlZddlZddlmZm Z ddl mZ ddl m Z erhddlmZ G d d � d ej�ZG dd� de�ZG d d� de�ZG dd� d�ZG dd� de�ZG dd� de�ZdS )a� Classes for calling functions a schedule. Has time zone support. For example, to run a job at 08:00 every morning in 'Asia/Calcutta': >>> import zoneinfo >>> job = lambda: print("time is now", datetime.datetime()) >>> time = datetime.time(8, tzinfo=zoneinfo.ZoneInfo('Asia/Calcutta')) >>> cmd = PeriodicCommandFixedDelay.daily_at(time, job) >>> sched = InvokeScheduler() >>> sched.add(cmd) >>> while True: # doctest: +SKIP ... sched.run_pending() ... time.sleep(.1) By default, the scheduler uses timezone-aware times in UTC. A client may override the default behavior by overriding ``now`` and ``from_timestamp`` functions. >>> now() datetime.datetime(...utc) >>> from_timestamp(1718723533.7685602) datetime.datetime(...utc) � )�annotationsN)� TYPE_CHECKING�Any� )� fromtimestamp��now)�Selfc @ sz e Zd ZU dZe�� Zded<