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). 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 current time
- centisecond - Get centiseconds from time value
- clear - Set value to empty
- compare - Compare time points
- hour - Get hours from time value
- isEmpty - Is time empty
- minute - Get minutes from time value
- 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== - Compare two time values (equal)
- operator> - Compare two time values (greater)
- operator>= - Compare two time values (greater or equal)
- second - Get seconds from time value
- 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 - Set unix time from time value
- wait - Pause processing
- ~Time - Destructor