MCPcopy
hub / github.com/celery/celery / now

Method now

celery/app/base.py:1111–1114  ·  view source on GitHub ↗

Return the current time and date as a datetime.

(self)

Source from the content-addressed store, hash-verified

1109 return find_deprecated_settings(c)
1110
1111 def now(self):
1112 """Return the current time and date as a datetime."""
1113 now_in_utc = to_utc(datetime.now(datetime_timezone.utc))
1114 return now_in_utc.astimezone(self.timezone)
1115
1116 def select_queues(self, queues=None):
1117 """Select subset of queues.

Callers 15

send_taskMethod · 0.95
exampleFunction · 0.45
default_nowMethod · 0.45
task_message_from_sigFunction · 0.45
has_expiredMethod · 0.45
remainingFunction · 0.45
startup_infoMethod · 0.45
startup_infoMethod · 0.45
maybe_expireMethod · 0.45
__init__Method · 0.45
infoMethod · 0.45
cleanupMethod · 0.45

Calls 1

to_utcFunction · 0.90

Tested by

no test coverage detected