Trees | Indices | Help |
|
---|
|
object --+ | TVal --+ | Time
Time contains the ROS-wide 'time' primitive representation, which consists of two integers: seconds since epoch and nanoseconds since seconds. Time instances are mutable.
Instance Methods | |||
|
|||
|
|||
|
|||
float |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
bool |
|
||
|
|||
long |
|
||
float |
|
||
Inherited from |
Static Methods | |||
Time |
|
||
Time |
|
Properties | |
nsecs | |
secs | |
Inherited from |
Method Details |
Constructor: secs and nsecs are integers. You may prefer to use the static from_sec() factory method instead.
|
Use from_sec() instead. This is retained for backwards compatibility.
|
Create new Time instance using time.time() value (float seconds)
|
Get Time in time.time() format. alias of to_sec()
|
repr(x)
|
Add duration to this time
|
Subtract time or duration from this time |
Compare to another time
|
Equals test for Time. Comparison assumes that both time instances are in canonical representation; only compares fields.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jan 11 10:11:52 2013 | http://epydoc.sourceforge.net |