|
TicksLocalTimeIsValid(Ticks, Ticks) Method
|
Determines if time, represented by
Ticks value in local time, is valid by comparing it to
the system clock.
Namespace: GSFAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.230-beta+03417d7b5cff037b24e882d7adef82d359b34964
Syntaxfunction LocalTimeIsValid(lagTime, leadTime);
View SourceParameters
- 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
BooleanTrue, if local time represented by
Ticks value, is within the specified range.
Exceptions
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.
See Also