time « Buildin Module « Python Tutorial

Home
Python Tutorial
1.Introduction
2.Data Type
3.Statement
4.Operator
5.String
6.Tuple
7.List
8.Dictionary
9.Collections
10.Function
11.Class
12.File
13.Buildin Function
14.Buildin Module
15.Database
16.Regular Expressions
17.Thread
18.Tkinker
19.wxPython
20.XML
21.Network
22.CGI Web
23.Windows
Python Tutorial » Buildin Module » time 
14.18.time
14.18.1.time.asctime
14.18.2.time.time() returns the current system time
14.18.3.time.localtime(secs) returns the time in the form of (year, month, day, hour, minute, second, day of week, day of year, daylight savings).
14.18.4.time.ctime(secs) returns the time, specified by secs since the UTC, as a formatted, printable string.
14.18.5.time.clock() returns the current CPU time as a floating-point number that can be used for various timing functions
14.18.6.time.sleep(sec) forces the current process to sleep for the number of seconds specified by the floating-point number secs
14.18.7.Random time
14.18.8.Creating a New Time
14.18.9.You can print the time values using the strftime() method.
14.18.10.Time Operations
14.18.11.sleep() method of time module example
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.