Python‎ > ‎time‎ > ‎

time.gmtime

http://www.adilwaseem.com/

Introduction
Convert seconds since the Epoch to a time tuple expressing UTC.

Syntax
time.gmtime()

Parameters
N/A

Import module
Importing module is required in the Shell window and the Editor window.

Examples
The method return with tuple of UTC.
 >>>import time
>>> time.gmtime()
time.struct_time(tm_year=2015, tm_mon=1, tm_mday=31, tm_hour=2, tm_min=37, tm_sec=21, tm_wday=5, tm_yday=31, tm_isdst=0)

Comments