This function gets the time of the server node.

C format

int32 pitm_servertime(

int32 PIPTR * servertime );



System Error


Success -

Note: Generally functions return zero  when successful; this is an exception.


servertime (returned)

PI Server node time in PI time format

Usage Notes

On VMS PI home nodes, this function returns 0 when successful. On VMS Pinet nodes, Windows NT, and UNIX nodes, this function returns 1 when successful.

If the PI Server time is needed frequently, the pitm_fastservertime function will return the server time without a network call each time.

Enabling Operational Intelligence