![]() |
OpenSplice C# API
v7.x
OpenSplice C# Data Distribution Service Data-Centric Publish-Subscribe API
|
Time represents a time value. More...
Public Member Functions | |
Time (long _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... | |
long | 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 387 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 325 of file DdsDcpsStructs.cs.
|
inline |
Calculates hash of the Time.
Definition at line 415 of file DdsDcpsStructs.cs.
Test if two Times are not equal.
Definition at line 441 of file DdsDcpsStructs.cs.
Test if two Times are equal.
Definition at line 428 of file DdsDcpsStructs.cs.
|
inline |
Create a DateTime struct based on the Time value.
Definition at line 339 of file DdsDcpsStructs.cs.
|
inline |
Converts Time to a string.
Definition at line 504 of file DdsDcpsStructs.cs.
Create a Time with the current time.
Definition at line 317 of file DdsDcpsStructs.cs.
Create an infinite Time.
Definition at line 307 of file DdsDcpsStructs.cs.
Create an zero Time.
Definition at line 312 of file DdsDcpsStructs.cs.
|
getset |
Gets the nanoseconds part of the Time.
Definition at line 287 of file DdsDcpsStructs.cs.
|
getset |
Gets the seconds part of the Time.
Definition at line 275 of file DdsDcpsStructs.cs.