pitm_syncwithservertime

This function obtains the server system time and attempts to set the local system clock accordingly if it deviates by more than 10 seconds from the local time. Any changes are made in a step-wise fashion.

C format

int32 pitm_syncwithservertime( void );

Returns

0

If able to retrieve servertime. Attempts to change local system time to agree with server. Success is subject to platform and user privileges. (e.g., no action on VAX, must be super user on some UNIX platforms)

2

If there is a problem retrieving server time.

Arguments

None

Usage Notes

On UNIX platforms, this function may only work correctly from a privileged process.

With the Windows 32 bit PI-API, this is not implemented. However, a code of 0 (success) is returned by the function.

Enabling Operational Intelligence