class documentation
class TVal(object):
Known subclasses: niryo_libraries.genpy.Duration
, niryo_libraries.genpy.Time
Constructor: TVal(secs, nsecs)
Class Method | from |
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 |
No summary |
Method | set |
Set time using separate secs and nsecs values. |
Method | to |
No summary |
Method | to |
No summary |
Class Variable | __slots__ |
Undocumented |
Instance Variable | nsecs |
Undocumented |
Instance Variable | secs |
Undocumented |
Class Variable | _slot |
Undocumented |
Create new TVal instance using time.time() value (float seconds).
Parameters | |
float | time value in time.time() format, float |
Returns | |
TVal instance for specified time |
overridden in
niryo_libraries.genpy.Duration
, niryo_libraries.genpy.Time
Time values are hashable.
Time values with identical fields have the same hash.
overridden in
niryo_libraries.genpy.Duration
, niryo_libraries.genpy.Time
Parameters | |
secs | seconds. 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 |
nsecs | nanoseconds, int |
Canonicalize the field representation in this instance.
Should only be used when manually setting secs/nsecs slot values, as in deserialization.
Set time using separate secs and nsecs values.
Parameters | |
secs | seconds since epoch, int |
nsecs | nanoseconds since seconds, int |