Type for time representation.
More...
Public Member Functions |
| Time_t (Time_t time) |
| Copy constructor.
|
|
| Time_t (int sec, int nanosec) |
| Constructor.
|
|
boolean | is_invalid () |
|
boolean | is_zero () |
| Check if time is zero.
|
|
abstract boolean | equals (Object obj) |
|
abstract int | hashCode () |
|
String | toString () |
|
Object | copy_from (Object src) |
| Copy value of a data type from source.
|
|
Public Attributes |
int | sec |
| seconds
|
|
int | nanosec |
| nanoseconds
|
|
Static Public Attributes |
static final int | TIME_INVALID_SEC |
| A sentinel indicating an invalid second of time.
|
|
static final int | TIME_INVALID_NSEC |
| A sentinel indicating an invalid nano-second of time.
|
|
static final Time_t | TIME_INVALID |
| A sentinel indicating an invalid time.
|
|
Additional Inherited Members |
| Struct () |
|
abstract void | pull_from_nativeI (long native_status) |
|
abstract void | push_to_nativeI (long native_status) |
|
Detailed Description
Type for time representation.
A com.rti.dds.infrastructure.Time_t represents a moment in time.
Constructor & Destructor Documentation
Copy constructor.
- Parameters
-
time | The instance to copy. It must not be null. |
Time_t |
( |
int |
sec, |
|
|
int |
nanosec |
|
) |
| |
Constructor.
- Parameters
-
sec | must be >=0 |
nanosec | must be >=0 |
- Exceptions
-
Member Function Documentation
- Returns
- com.rti.dds.infrastructure.true if the given time is not valid (i.e. is negative)
Check if time is zero.
- Returns
- com.rti.dds.infrastructure.true if the given time is equal to com.rti.dds.infrastructure.Time_t.ZERO or com.rti.dds.infrastructure.false otherwise.
Member Data Documentation
final int TIME_INVALID_SEC |
|
static |
A sentinel indicating an invalid second of time.
final int TIME_INVALID_NSEC |
|
static |
A sentinel indicating an invalid nano-second of time.
A sentinel indicating an invalid time.