Function
The function TimeToItems is used to split up a time, in a format compatible with the format used by the interface D2000 ObjApi, to individual items.
Declaration
APIRET TimeToItems(double Tm,unsigned int *Year,unsigned int *Month,unsigned int *Day,unsigned int *Hour,unsigned int *Min,unsigned int *Sec,unsigned int *Msec)

Parameters
The parameter Tm defines the time to be split up. The ranges of items are the same as the ranges of input parameters of the function TimeFromItems.
Return code
Code Description
API_OK Time was successfully split up to individual items.
API_ParamError Entered time is invalid or some of the pointers is null.

Napíšte komentár