Home | Trees | Indices | Help |
---|
|
object --+ | Time
Base time object.
Time object support the following operations:
Comparison. Comparison is done using the native time object type. For example, "Posix" objects compare time in POSIX seconds. Thus, if comparing two Posix objects that have slightly different TSC values, but due to the loss of precision have the same POSIX value, they will compare as equal.
Comparison between different types is OK (Posix compared to TSC). You can also compare a value with Python numeric literals (int, long, float, etc.).
Hashing. Hashing is based on the object type.
Addition and subtraction. This only works between two types of the exact same type (Posix and Posix for example), or with a Python numeric literal (int, long, float, etc.).
int/long/float. Calling the int, long, or float functions on the object will return an int, long, or float value of the object's type.
|
|||
a new object with type S, a subtype of T |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
tsc : The time in TSC. |
|
|||
Inherited from |
|
|
|
|
|
|
Return the time as a string. This returns the time as a classic C-style 24-character time string in the local timezone in the format 'Sun Jun 20 23:21:05 1993'. This does not include a trailing newline like C does.
|
|
|
|
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Feb 16 18:06:44 2012 | http://epydoc.sourceforge.net |