MCPcopy Index your code
hub / github.com/coleifer/huey / aware_to_utc

Function aware_to_utc

huey/utils.py:84–88  ·  view source on GitHub ↗

Converts an aware datetime.datetime in UTC time zone.

(dt)

Source from the content-addressed store, hash-verified

82
83
84def aware_to_utc(dt):
85 """
86 Converts an aware datetime.datetime in UTC time zone.
87 """
88 return dt.astimezone(_UTC).replace(tzinfo=None)
89
90
91def local_to_utc(dt):

Callers 1

normalize_timeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…