My time zone is GMT+8, I am running following in python console to verify it:
>>> from keystoneclient.openstack.common import timeutils
>>> import time
>>> print time.time()
1372461272.58
>>> print timeutils.utcnow().strftime('%s')
1372432495
>>> print time.time(), timeutils.utcnow().strftime('%s')
1372461312.73 1372432512
>>> print (1372461312 - 1372432512)/3600
8
My time zone is GMT+8, I am running following in python console to verify it: openstack. common import timeutils utcnow( ).strftime( '%s') utcnow( ).strftime( '%s')
>>> from keystoneclient.
>>> import time
>>> print time.time()
1372461272.58
>>> print timeutils.
1372432495
>>> print time.time(), timeutils.
1372461312.73 1372432512
>>> print (1372461312 - 1372432512)/3600
8