On-line Guides

How To Guides






Additional time Module Features
Prev Chapter 32. Dates and Times: the time and datetime Modules Next

Additional time Module Features

Here are some additional functions in the time module.

time.sleep ( seconds , tuple )

Delay execution for a given number of seconds. The argument may be a floating point number for subsecond precision.

time.accept2dyear

If non-zero, 2-digit years are accepted. 69-99 is treated as 1969 to 1999, 0 to 68 is treated as 2000 to 2068. This is 1 by default, unless the PYTHONY2K environment variable is set; then this variable will be zero.

time.altzone

Difference in seconds between UTC and local Daylight Savings time. Often a multiple of 3600 (all US time zones are in whole hours). For example, Eastern Daylight Time is 14400 (4 hours).

time.daylight

Non-zero if the locale uses daylight savings time. Zero if it does not.

time.timezone

Difference in seconds between UTC and local Standard time. Often a multiple of 3600 (all US timezones are in whole hours).

time.tzname

The name of the timezone.


Prev Up Next
Time Exercises Home Chapter 33. File Handling Modules

Published under the terms of the Open Publication License Design by Interspire

AltStyle によって変換されたページ (->オリジナル) /