Time and date
index
About Time and date
There are three different control panel types, the TD_DATE, TD_TIME and TD_DATETIME, that are related to date and time.
The TD_DATE type consists of a year, month and day of the month, the value should be formatted with the FormatDate funtion. This function performs a simple bit-shift and returns a 32-bit unsigned integer.The TD_TIME type consists of hours, minutes, seconds and milliseconds, the value should be formatted with the FormatTime function. This function also performs a simple bit-shift and returns a 32-bit unsigned integer. The TD_DATETIME type consists of hours, minutes, seconds, year, month and the day of the month, the value should be formatted with the FormatDateTime function. This function will calculate the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970, not counting leap seconds and returns a long long (64-bits).
The functions RecoverDate, RecoverTime and RecoverDateTime can be used to retrieve the converted hours, minutes, seconds, year, month and the day of the month.