YouTip LogoYouTip

Att Time Ctime

# Python2.x Python time ctime() Method * * * ## Description The Python time ctime() function converts a timestamp (a floating-point number representing seconds) into the format of time.asctime(). If the argument is not provided or is None, it defaults to using time.time() as the argument. Its effect is equivalent to asctime(localtime(secs)). ## Syntax The syntax for the ctime() method is: time.ctime() ## Parameters * sec -- The number of seconds to convert into a string time. ## Return Value This function does not return any value. ## Example The following example demonstrates the usage of the ctime() function: #!/usr/bin/pythonimport time print "time.ctime() : %s" % time.ctime() The output of the above example is: time.ctime() : Tue Feb 17 10:00:18 2013
← Att Time GmtimeAtt Time Clock β†’