Click or drag to resize

TicksLocalTimeIsValid(Double, Double) Method

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

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
public bool LocalTimeIsValid(
	double lagTime,
	double leadTime
)
View Source

Parameters

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

Return Value

Boolean
True, if local time represented by Ticks value, is within the specified range.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionlagTime and leadTime must be greater than zero, but can be less than one.
Remarks
Time, represented by Ticks value, is considered valid if it exists within the specified lagTime and leadTime range of local system clock time. Note that lagTime and leadTime must be greater than zero, but can be set to sub-second intervals.
See Also