dnp3 (.NET API) 1.5.2
Loading...
Searching...
No Matches
dnp3.UtcTimestamp Class Reference

Timestamp value returned by IAssociationHandler.GetCurrentTime. More...

Public Member Functions

UtcTimestamp WithValue (ulong value)
 Count of milliseconds since UNIX epoch More...
 
UtcTimestamp WithIsValid (bool value)
 True if the timestamp is valid, false otherwise. More...
 

Static Public Member Functions

static UtcTimestamp Valid (ulong value)
 Construct a valid UtcTimestamp More...
 
static UtcTimestamp Invalid ()
 Construct an invalid UtcTimestamp More...
 

Public Attributes

ulong Value
 Count of milliseconds since UNIX epoch More...
 
bool IsValid
 True if the timestamp is valid, false otherwise. More...
 

Detailed Description

Timestamp value returned by IAssociationHandler.GetCurrentTime.

UtcTimestamp.Value is only valid if UtcTimestamp.IsValid is true.

Member Function Documentation

◆ Invalid()

static UtcTimestamp dnp3.UtcTimestamp.Invalid ( )
inlinestatic

Construct an invalid UtcTimestamp

Default values:

Returns
Initialized UtcTimestamp instance

◆ Valid()

static UtcTimestamp dnp3.UtcTimestamp.Valid ( ulong  value)
inlinestatic

Construct a valid UtcTimestamp

Default values:

Parameters
valueCount of milliseconds since UNIX epoch
Returns
Initialized UtcTimestamp instance

◆ WithIsValid()

UtcTimestamp dnp3.UtcTimestamp.WithIsValid ( bool  value)
inline

True if the timestamp is valid, false otherwise.

◆ WithValue()

UtcTimestamp dnp3.UtcTimestamp.WithValue ( ulong  value)
inline

Count of milliseconds since UNIX epoch

Warning: Only the lower 48-bits are used in DNP3 timestamps and time synchronization

Member Data Documentation

◆ IsValid

bool dnp3.UtcTimestamp.IsValid

True if the timestamp is valid, false otherwise.

◆ Value

ulong dnp3.UtcTimestamp.Value

Count of milliseconds since UNIX epoch

Warning: Only the lower 48-bits are used in DNP3 timestamps and time synchronization


The documentation for this class was generated from the following file: