timeutil¶
-
springfield.timeutil.
date_parse
(date)¶ Parse an RFC3339 formatted time string into a datetime object.
Assumes input is UTC.
-
springfield.timeutil.
generate_rfc3339
(value)¶ Converts a datetime to an RFC3339 formatted time string.
Input is always converted to UTC.
Parameters: value – A datetime
instance
-
springfield.timeutil.
utcnow
()¶ Returns the current time in TZ aware UTC.
Returns: datetime
instance