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
int32 PIPROC pitm_getpitime(
PITIMESTAMP PIPTR *timestamp,
float64 PIPTR *frac);
PI for OpenVMS time
-1 for invalid PITIMESTAMP structure members
Structure containing timestamp.
Sub-second portion of the timestamp. This value is always positive, and is between 0 and 1.
If the sub-second portion of the timestamp is not needed, pass a NULL pointer for the frac argument.