Skip to content

Instantly share code, notes, and snippets.

View pbannister's full-sized avatar

Preston L. Bannister pbannister

View GitHub Profile
"""
Handle timestamps as used in OpenStack.
In theory, timestamps from OpenStack are going to be ISO datetime.
In practice, timestamps from OpenStack are likely always UTC.
At present, timestamps from Keystone all(?) end in 'Z'.
At present, timestamps from Cinder all(?) lack any timezone/offset.
Beware of Python "naive" datetime (w/o timezome).