class documentation

Base class of Time and Duration representations.

Representation is secs+nanoseconds since epoch.

Class Method from_sec Create new TVal instance using time.time() value (float seconds).
Method __cmp__ Undocumented
Method __eq__ Undocumented
Method __ge__ >= test for time values.
Method __gt__ > test for time values.
Method __hash__ Time values are hashable.
Method __init__ No summary
Method __le__ <= test for time values.
Method __lt__ < test for time values.
Method __ne__ Undocumented
Method __nonzero__ Return if time value is not zero.
Method __repr__ Undocumented
Method __str__ Undocumented
Method canon Canonicalize the field representation in this instance.
Method is_zero No summary
Method set Set time using separate secs and nsecs values.
Method to_nsec No summary
Method to_sec No summary
Class Variable __slots__ Undocumented
Instance Variable nsecs Undocumented
Instance Variable secs Undocumented
Class Variable _slot_types Undocumented
@classmethod
def from_sec(cls, float_secs):

Create new TVal instance using time.time() value (float seconds).

Parameters
float_secstime value in time.time() format, float
Returns
TVal instance for specified time
def __cmp__(self, other):
def __eq__(self, other):
def __ge__(self, other):

>= test for time values.

def __gt__(self, other):

> test for time values.

def __hash__(self):

Time values are hashable.

Time values with identical fields have the same hash.

def __init__(self, secs=0, nsecs=0):
Parameters
secsseconds. If secs is a float, then nsecs must not be set or 0, larger seconds will be of type long on 32-bit systems, int/long/float
nsecsnanoseconds, int
def __le__(self, other):

<= test for time values.

def __lt__(self, other):

< test for time values.

def __ne__(self, other):

Undocumented

def __nonzero__(self):

Return if time value is not zero.

def __repr__(self):
def __str__(self):

Undocumented

def canon(self):

Canonicalize the field representation in this instance.

Should only be used when manually setting secs/nsecs slot values, as in deserialization.

def is_zero(self):
Returns
True if time is zero (secs and nsecs are zero), bool
def set(self, secs, nsecs):

Set time using separate secs and nsecs values.

Parameters
secsseconds since epoch, int
nsecsnanoseconds since seconds, int
def to_nsec(self):
Returns
time as nanoseconds, long
def to_sec(self):
Returns
time as float seconds (same as time.time() representation), float
__slots__: list[str] =
_slot_types: list[str] =

Undocumented