Network Time Protocol


CLASS aprTime

 

Description

The network time client library enables the application to request the current time and date from a remote server. The values returned may either be expressed in local time (using the local host's timezone) or system time (also known as Coordinated Universal Time (UTC) or Grenwich Mean Time (GMT)). The Class may also be used to synchronize the local host's system clock with the remote server.

 

 

Variables

     

:cErr

Holds a description for the Last error code

     

:DeBug

Enable/Disable extended Debug notifications.

 

:DebugTrace

Enable/Disable Callstack List to be included in Error Messages (:Debug)

     

:nErr

Holds the last error code

 

Methods

 

:New()

Creates a new instance of the aprTime Class

     

:Destroy()

Releases the system resources assigned by the :New() Method.

 

 

 

     

:ConvertNetworkTime()

Convert network time to system time

     

:ConvertSystemTime()

Convert system time to network time

     

:CreateLocalTime()

Create NetworkTime from Internal Clock

     

:GetNetworkTime()

Return the current network time from the remote host

     

:Timeout()

Sets/Returns the Current Timeout Value, in Seconds

     

:Trace()

Enable/Disable logging of socket-level calls to the trace log

     

:UpdateLocalTime()

Update the local system time with the network time