TicksUtcTimeIsValid(Ticks, Ticks) Method

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

Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.147 -- Release Build+759c9d29b79c81f10905de8f58b653be932045f0
public bool UtcTimeIsValid(
	Ticks lagTime,
	Ticks leadTime
)

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.

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.

Exceptions

ArgumentOutOfRangeExceptionlagTime and leadTime must be greater than zero.

See Also