Time - Time value
ODABA supports time values with a precision of 1/100 second. In order to convert ODABA time values to other time formats, the class provides a number of conversion functions.
ODABA time values have to be interpreted by the application, i.e. ODABA does not request specific time values (as UTC or local time). ). However, in many places local time is considered as default. In order to support conversion to standard time formats, the class provides conversion functions to standard Unix timestamp, which provides the number of seconds since 1970-01-01 00:00:00. Still, it is up to the application interpreting the timestamp value as local or standard time value.
Attributes
Function Groups
- 1. Administration - Administration functions
- 2. Access - Access functions
- 2.1. Conversion - Access functions - data conversion
- 2.2. Operation - Access functions - operations
- 2.3. Compare - Access functions - comparison
Functions
- Time - Constructor
- addCentiseconds - Add centiseconds to time value
- addHours - Add hours to time value
- addMinutes - Add minutes to time value
- addSeconds - Add seconds to time value
- assign - Set time value
- centisecond - Centisecond property
- clear - Set value to empty
- compare - Compare time values
- hour - Hours property
- isEmpty - Is time empty
- minute - Minute property
- now - Set current time
- operator!= - Compare two time values (not equal)
- operator< - Compare two time values (less)
- operator<= - Compare two time values (less or equal)
- operator= - - internal feature (not documented)
- operator== - Compare two time values (equal)
- operator> - Compare two time values (greater)
- operator>= - Compare two time values (greater or equal)
- second - Second property
- subtractCentiseconds - Subtract centiseconds from time value
- subtractHours - Subtract hours from time value
- subtractMinutes - Subtract minutes from time value
- subtractSeconds - Subtract seconds from time value
- toCentiseconds - Convert to centiseconds
- toString - Convert time value to string
- toUnixTime - Get unix timestamp from ODABA time value
- wait - Pause processing
- ~Time - Destructor