SocketTools .NET Edition

NetworkTime Class

Query a time server for the current time and synchronize the local system clock with that value.

For a list of all members of this type, see NetworkTime Members.

System.Object
   SocketTools.NetworkTime

[Visual Basic]
Public Class NetworkTime
    Implements IDisposable
[C#]
public class NetworkTime : IDisposable

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The NetworkTime class library provides an interface for synchronizing the local system's time and date with that of a remote server. The time values returned are in in Coordinated Universal Time and be adjusted for the local host's timezone. The class enables developers to query a server for the current time and then update the system clock if desired.

Requirements

Namespace: SocketTools

Assembly: SocketTools.NetworkTime (in SocketTools.NetworkTime.dll)

See Also

NetworkTime Members | SocketTools Namespace