![]() |
OpenSplice C# API
v6.x
OpenSplice C# Data Distribution Service Data-Centric Publish-Subscribe API
|
Time represents a time value. More...
Public Member Functions | |
Time (int _sec, uint _nanosec) | |
Create a Time based on seconds and nanoseconds. More... | |
override bool | Equals (object obj) |
Test this Time is equal to the provided Time. More... | |
override int | GetHashCode () |
Calculates hash of the Time. More... | |
DateTime | ToDatetime () |
Create a DateTime struct based on the Time value. More... | |
override string | ToString () |
Converts Time to a string. More... | |
Static Public Member Functions | |
static Time | FromDateTime (DateTime value) |
Create a Time struct based on a DateTime value. More... | |
static bool | operator!= (Time left, Time right) |
Test if two Times are not equal. More... | |
static bool | operator< (Time left, Time right) |
Test one Time is after another Time. More... | |
static bool | operator<= (Time left, Time right) |
Test one Time is equal of before another Time. More... | |
static bool | operator== (Time left, Time right) |
Test if two Times are equal. More... | |
static bool | operator> (Time left, Time right) |
Test one Time is before another Time. More... | |
static bool | operator>= (Time left, Time right) |
Test one Time is equal of after another Time. More... | |
Static Public Attributes | |
static readonly Time | Current = new Time(InvalidSec, InvalidNanoSec-1) |
static readonly Time | Invalid = new Time(InvalidSec, InvalidNanoSec) |
Create an infinite Time. More... | |
static readonly Time | Zero = new Time(ZeroSec, ZeroNanoSec) |
Properties | |
uint | NanoSec [get, set] |
Gets the nanoseconds part of the Time. More... | |
int | Sec [get, set] |
Gets the seconds part of the Time. More... | |
Time represents a time value.
Time can be converted to and from Times expressed in milliseconds (or other units) as integer types.
Definition at line 256 of file DdsDcpsStructs.cs.
|
inline |
Create a Time based on seconds and nanoseconds.
Definition at line 359 of file DdsDcpsStructs.cs.
|
inline |
|
inlinestatic |
Create a Time struct based on a DateTime value.
value | DateTime value to convert to Duration |
Definition at line 308 of file DdsDcpsStructs.cs.
|
inline |
Calculates hash of the Time.
Definition at line 386 of file DdsDcpsStructs.cs.
Test if two Times are not equal.
Definition at line 412 of file DdsDcpsStructs.cs.
Test if two Times are equal.
Definition at line 399 of file DdsDcpsStructs.cs.
|
inline |
Create a DateTime struct based on the Time value.
Definition at line 318 of file DdsDcpsStructs.cs.
|
inline |
Converts Time to a string.
Definition at line 475 of file DdsDcpsStructs.cs.
Create a Time with the current time.
Definition at line 300 of file DdsDcpsStructs.cs.
Create an infinite Time.
Definition at line 290 of file DdsDcpsStructs.cs.
Create an zero Time.
Definition at line 295 of file DdsDcpsStructs.cs.
|
getset |
Gets the nanoseconds part of the Time.
Definition at line 275 of file DdsDcpsStructs.cs.
|
getset |
Gets the seconds part of the Time.
Definition at line 264 of file DdsDcpsStructs.cs.