pitm_setpitime

This function sets a PITIMESTAMP structure to the passed PI for OpenVMS time. Any sub-second portion is passed as a separate argument.

Visual Basic format

Declare Function pitm_setpitime Lib "piapi32.dll" (
time0 As PITimeStamp,
ByVal PItime&,
ByVal frac#) As Long

C format

int32 PIPROC pitm_setpitime(

PITIMESTAMP PIPTR *timestamp,

int32 pitime,

float64 frac);

Returns

0

Success

-1

frac out of range

 

Arguments

timestamp (returned)

Structure containing timestamp. 

pitime (passed)

PI for OpenVMS time.

frac (passed)

Subsecond time.

Usage Notes

PI for OpenVMS time is the number of seconds after midnight, 01-Jan-70 in local time.

The frac argument must be a positive number between 0 and 1.

Enabling Operational Intelligence