Click or drag to resize

TicksUtcTimeIsValid(Ticks, Ticks) Method

Determines if time, represented by Ticks value in UTC time, is valid by comparing it to the system clock.

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.252-beta+d6f44256e7cdcd1b3455fcb1dc7bd1c8d65c988a
Syntax
public bool UtcTimeIsValid(
	Ticks lagTime,
	Ticks leadTime
)
View Source

Parameters

lagTime  Ticks
The allowed lag time, in ticks, before assuming time is too old to be valid.
leadTime  Ticks
The allowed lead time, in ticks, before assuming time is too advanced to be valid.

Return Value

Boolean
True, if UTC time represented by Ticks value, is within the specified range.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionlagTime and leadTime must be greater than zero.
Remarks
Time, represented by Ticks value, is considered valid if it exists within the specified lagTime and leadTime range of system clock time in UTC. Note that lagTime and leadTime must be greater than zero.
See Also