Python time Functions
EditRocket provides the following information on time functions in the Python source code builder.
asctime([t]) - Convert a tuple or struct_time representing a time as returned by gmtime() or localtime() to a 24-character string of the following form: 'Sun Jun 20 23:21:05 1993'.
clock() - On Unix, return the current processor time as a floating point number expressed in seconds.
ctime([secs]) - Convert a time expressed in seconds since the epoch to a string representing local time.
gmtime([secs]) - Convert a time expressed in seconds since the epoch to a struct_time in UTC in which the dst flag is always zero.
localtime([secs]) - Like gmtime() but converts to local time.
mktime(t) - This is the inverse function of localtime().
sleep(secs) - Suspend execution for the given number of seconds.
strftime(format[, t]) - Convert a tuple or struct_time representing a time as returned by gmtime() or localtime() to a string as specified by the format argument.
strptime(string[, format]) - Parse a string representing a time according to a format.
time() - Return the time as a floating point number expressed in seconds since the epoch, in UTC.
tzset() - Resets the time conversion rules used by the library routines.