timeutil¶
-
springfield.timeutil.
date_parse
(date)[source]¶ Parse an RFC3339 formatted time string into a datetime object.
Assumes input is UTC.
-
springfield.timeutil.
generate_rfc3339
(value)[source]¶ Converts a datetime to an RFC3339 formatted time string.
Input is always converted to UTC.
Parameters: value – A datetime
instance
-
springfield.timeutil.
utc
= <UTC>¶ A
tzinfo
for UTC