• About TV's server
  • New in version 3.10
  • About the source code
  • About protocols/plugins
  • TV's server API
  • Protocol Initialisation
  • Protocol binding
  • Protocol Listening and handling
  • Protocol data storage
  • Control panel
  • Multi column list
  • Time and date
  • Http protocol functions
  • Unimplemented and/or replaced functions
  • 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).