DateTime - Timestamp
ODABA supports timestamp values with a precision of 1/100 second. In order to convert ODABA timestamp values to other time formats, the class provides a number of conversion functions.
ODABA timestamp 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 Unix 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
- DateTime - Constructor for timestamp
- addCentiseconds - Add centiseconds to timestamp value
- addDays - Add days to date value
- addHours - Add hours to timestamp value
- addMinutes - Add minutes to timestamp value
- addMonths - Add months to date value
- addSeconds - Add seconds to timestamp value
- addWorkingDays - Add number of working days
- addYears - Add years to date value
- assign - Set timestamp value
- centisecond - Get centiseconds from time value
- clear - Set value to empty
- compare - Compare timestamps
- date - Get date value from timestamp value
- day - Get days from date
- dayOfWeek - Get day of week
- decade - Get decade number
- hour - Get hours from time value
- isEmpty - Is timestamp empty
- minute - Get minutes from time value
- month - Get number of month
- now - Set timestamp to current time
- operator!= - Compare timestamps (not equal)
- operator< - Compare timestamps (less)
- operator<= - Compare timestamps (less or equal)
- operator== - Compare timestamps (equal)
- operator> - Compare timestamps (greater)
- operator>= - Compare timestamps (greater or equal)
- second - Get seconds from time value
- setDate - Set date for timestamp value
- setTime - Set time for timestamp value
- subtractCentiseconds - Subtract centiseconds from timestamp value
- subtractDays - Subtract days from date value
- subtractHours - Subtract hours from timestamp value
- subtractMinutes - Subtract minutes from timestamp value
- subtractMonths - Subtract month from date value
- subtractSeconds - Subtract seconds from timestamp value
- subtractWorkingDays - Subtract number of working days from date value
- subtractYears - Subtract years from date value
- time - Get time value from timestamp value
- toString - Convert timestamp to string
- toUnixTime - Get unix timestamp
- year - Get number of years
- ~DateTime - Destructor