glance.common.timeutils module

Time related utilities and helper functions.

glance.common.timeutils.iso8601_from_timestamp(timestamp, microsecond=False)[source]

Returns an iso8601 formatted date from timestamp.

glance.common.timeutils.isotime(at=None, subsecond=False)[source]

Stringify time in ISO 8601 format.

glance.common.timeutils.normalize_time(timestamp)[source]

Normalize time in arbitrary timezone to UTC naive object.

glance.common.timeutils.parse_isotime(timestr)[source]

Parse time from ISO 8601 format.