MCPcopy
hub / github.com/celery/celery / to_local

Method to_local

celery/schedules.py:100–103  ·  view source on GitHub ↗
(self, dt: datetime)

Source from the content-addressed store, hash-verified

98 return self.app.conf.enable_utc
99
100 def to_local(self, dt: datetime) -> datetime:
101 if not self.utc_enabled:
102 return timezone.to_local_fallback(dt)
103 return dt
104
105 def __eq__(self, other: Any) -> bool:
106 if isinstance(other, BaseSchedule):

Callers 1

remaining_deltaMethod · 0.45

Calls 1

to_local_fallbackMethod · 0.80

Tested by

no test coverage detected