This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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). |