Function
The function TimeFromItems is used to get a time in a format compatible with the format used by the interface D2000 ObjApi, from individual items.
Declaration
double TimeFromItems(unsigned int Year,unsigned int Month,unsigned int Day,unsigned int Hour,unsigned int Min,unsigned int Sec,unsigned int Msec)
Parameters
Range of input values is following:
  • Year - from 1972 to 2039
  • Month - from 1 to 12
  • Day - from 1 to 31
  • Hour - from 0 to 23
  • Min, Sec - from 0 to 59
  • Msec - from 0 to 999
Return value
Time in system format. If the input parameters are not correctly entered, there is returned the time with the code of 0.0
Napíšte komentár