Inherits Struct, and java.io.Externalizable.
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. | |
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. |
A com.rti.dds.infrastructure.Time_t represents a moment in time.
Copy constructor.
time | The instance to copy. It must not be null. |
Time_t | ( | int | sec, | |
int | nanosec | |||
) |
Constructor.
sec | must be >=0 | |
nanosec | must be >=0 |
RETCODE_BAD_PARAMETER | if either time value is negative |
boolean is_invalid | ( | ) |
boolean is_zero | ( | ) |
Check if time is zero.
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.
int sec |
seconds
int nanosec |
nanoseconds