time.time()
returns seconds since epoch, so it doesn't define which time standard or zone is being used.
Convert to time standards using:
- time.localtime([secs]) - Local time as defined by your operating system
- time.gmtime([secs]) - UTC
They both return a time.struct_time.
>>> t = time.time()
>>> time.localtime(t)
time.struct_time(tm_year=2013, tm_mon=5, tm_mday=15, tm_hour=2, tm_min=41, tm_sec=49, tm_wday=2, tm_yday=135, tm_isdst=1)
>>> time.gmtime(t)
time.struct_time(tm_year=2013, tm_mon=5, tm_mday=15, tm_hour=0, tm_min=41, tm_sec=49, tm_wday=2, tm_yday=135, tm_isdst=0)