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
CodeDescription
API_OKTime was successfully split up to individual items.
API_ParamErrorEntered time is invalid or some of the pointers is null.
Napíšte komentár