operating system services gmtime([secs]converts time expressed in seconds since the epoch to time in utc coordinated universal time ( greenwich mean timethis function returns struct_time object with the following attributesattribute value tm_year tm_mon tm_mday tm_hour tm_min tm_sec tm_wday tm_yday tm_isdst four-digit value such as - - - - - - ( =monday - - the tm_isdst attribute is if dst is in effect if notand - if no information is available if secs is omitted or nonethe current time is used for backward compatibilitythe returned struct_time object also behaves like -tuple containing the preceding attribute values in the same order as listed localtime([secs]returns struct_time object as with gmtime()but corresponding to the local time zone if secs is omitted or nonethe current time is used mktime(tuplethis function takes struct_time object or tuple representing time in the local time zone (in the same format as returned by localtime()and returns floating-point number representing the number of seconds since the epoch an overflowerror exception is raised if the input value is not valid time sleep(secsputs the current process to sleep for secs seconds secs is floating-point number strftime(format [tm]converts struct_time object tm representing time as returned by gmtime(or localtime(to string (for backwards compatibilitytm may also be tuple representing time valueformat is format string in which the following format codes can be embeddeddirective meaning % % % % % % % locale' abbreviated weekday name locale' full weekday name locale' abbreviated month name locale' full month name locale' appropriate date and time representation day of the month as decimal number [ - hour ( -hour clockas decimal number [ - lib fl ff