Gets the clock skew.

Namespace: ININ.IceLib.Connection
Assembly: ININ.IceLib (in ININ.IceLib.dll) Version: 0.0.0.0 (22.3.0.218)

Syntax

C#
public TimeSpan ClockSkew { get; }
Visual Basic
Public ReadOnly Property ClockSkew As TimeSpan
	Get

Field Value

The clock skew.

Remarks

The clock skew accounts for slight differences in the clock adjustment of the local client versus the IC server. It does not account for timezone differences.

This value is exposed to allow conversion of times between client and server for custom attributes or other values outside of the control of IceLib itself.

The relationship of clock skew to client and server times can be described as follows:

  • [Clock Skew] = [Server Time Now in Local Time] - [Client Time Now]
  • [IceLib Client Time] = [Server Time in Local Time] - [Clock Skew] - [AdditionalUtcOffset]
  • [Server Time in Local Time] = [IceLib Client Time] + [Clock Skew] + [AdditionalUtcOffset]

As shown, IceLib DateTime values are also affected by the AdditionalUtcOffset, if one is specified.

Version Information

Supported for IC Server version 2015 R1 and beyond.
For 4.0, supported for IC Server version 4.0 GA and beyond.
For 3.0, supported for IC Server version 3.0 GA and beyond.

See Also