API Reference for Enthought Tool Suite 3.0.1
This module wraps the standard library time module to gracefully handle bad input values for time.
EPOCH = datetime.fromtimestamp(0.0)
struct_time = type(stdlib_time.localtime())
Find the day of year of the datetime.
The returned DoY is in the range [1-366].
localtime([seconds]) -> (tm_year,tm_mon,tm_day,tm_hour,tm_min,tm_sec,tm_wday,tm_yday,tm_isdst)
Convert seconds since the Epoch to a time tuple expressing local time. When 'seconds' is not passed in, convert the current time instead.
Modified to accept timestamps before the Epoch.
mktime(tuple) -> floating point number
Convert a time tuple in local time to seconds since the Epoch. Invalid time tuples will be assigned the value 0.0 and a warning will be issued.
safe_fromtimestamp(timestamp) -> UTC time from POSIX timestamp.
Timestamps outside of the valid range will be assigned datetime objects of Jan 1 of either MINYEAR or MAXYEAR, whichever appears closest.
| Local name | Refers to |
|---|---|
| datetime | datetime.datetime |
| MAXYEAR | datetime.MAXYEAR |
| MINYEAR | datetime.MINYEAR |
| stdlib_time | time |
| timedelta | datetime.timedelta |
| warnings | warnings |
© Copyright 2002-2008 Enthought, Inc.