Notice: Constant POS_FUNC_INOUT already defined in D:\sites\server_model_v3\site\index.php on line 65
Notice: Constant POS_FUNC_NAME already defined in D:\sites\server_model_v3\site\index.php on line 66
Notice: Constant POS_FUNC_TYPE_NUM already defined in D:\sites\server_model_v3\site\index.php on line 67
Notice: Constant POS_STRUCT_INOUT already defined in D:\sites\server_model_v3\site\index.php on line 69
Notice: Constant POS_STRUCT_NAME already defined in D:\sites\server_model_v3\site\index.php on line 70
Notice: Constant POS_STRUCT_TYPE_NUM already defined in D:\sites\server_model_v3\site\index.php on line 71
Notice: Constant REQUIREMENTS_POS already defined in D:\sites\server_model_v3\site\index.php on line 76
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.