ihuServerGetTime

Use the ihuServerGetTime function to return the current time on the Historian server.

Prototype

ihuErrorCode IHUAPI ihuServerGetTime
(
    long serverhandle,
    IHU_TIMESTAMP *CurrentTime
)

Remarks

The ihuServerGetTime function has the following inputs and outputs:

  • hServer: Server handle from the connection
  • CurrentTime: Current time on the server in the local time zone

Returns

The ihuServerGetTime function returns ihuSTATUS_OK on success, or an error code on failure.