pitm_getpitime

This function accepts a PITIMESTAMP structure and returns the time as a PI for OpenVMS time, that is, as the number of seconds after midnight, 01-Jan-70 in local time. The sub-second time portion is optionally returned.

Visual Basic format

Declare Function pitm_getpitime Lib "piapi32.dll" (
time0 As PITimeStamp,
frac#) As Long

C format

int32 PIPROC pitm_getpitime(

PITIMESTAMP PIPTR *timestamp,

float64 PIPTR *frac);

Returns

PI for OpenVMS time

-1 for invalid PITIMESTAMP structure members

Arguments

timestamp (passed)

Structure containing timestamp. 

frac (returned)

Sub-second portion of the timestamp. This value is always positive, and is between 0 and 1.

Usage Notes

If the sub-second portion of the timestamp is not needed, pass a NULL pointer for the frac argument.

Enabling Operational Intelligence