TicksLocalTimeIsValid(Double, Double) Method
Determines if time, represented by
Ticks value in local time, is valid by comparing it to
the system clock.
Namespace: GemstoneAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.165 -- Release Build+e14d337b173ad33e50be6747ce5b02f477f99484
public bool LocalTimeIsValid(
double lagTime,
double leadTime
)
Public Function LocalTimeIsValid (
lagTime As Double,
leadTime As Double
) As Boolean
public:
bool LocalTimeIsValid(
double lagTime,
double leadTime
)
function LocalTimeIsValid(lagTime, leadTime);
- 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.
BooleanTrue, if local time represented by
Ticks value, is within the specified range.
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.
| ArgumentOutOfRangeException | lagTime and leadTime must be greater than zero, but can be less than one.
|