SocketTools .NET Edition

NetworkTime.GetTime Method

Get the current date and time from the default time server.

Overload List

Get the current date and time from the default time server.

public DateTime GetTime();

Get the current date and time from a default time server.

public bool GetTime(ref DateTime);

Get the network time from the default time server.

public bool GetTime(ref long);

Get the current date and time from the specified time server.

public DateTime GetTime(string);

Get the current date and time from the specified time server.

public DateTime GetTime(string,bool);

Get the current date and time from the specified time server.

public bool GetTime(string,ref DateTime);

Get the current date and time from the specified time server.

public bool GetTime(string,int,ref DateTime);

Get the current date and time from the specified time server.

public DateTime GetTime(string,int,int,bool);

Get the current date and time from the specified time server.

public bool GetTime(string,int,int,bool,ref DateTime);

Get the current date and time from the specified time server.

public bool GetTime(string,int,int,ref DateTime);

Get the network time from the specified time server.

public bool GetTime(string,int,int,ref long);

Get the network time from the specified time server.

public bool GetTime(string,int,ref long);

Get the network time from the specified time server.

public bool GetTime(string,ref long);

See Also

NetworkTime Class | SocketTools Namespace