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). 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 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 time value
- addMinutes - Add minutes to time value
- addMonths - Add months to date value
- addSeconds - Add seconds to time value
- addWorkingDays - Add number of working days
- addYears - Add years to date value
- assign - Set timestamp value
- centisecond - Centisecond property
- clear - Set value to empty
- compare - Compare timestamps
- date - Date property
- day - Day number
- dayOfWeek - Day of week
- decade - Get decade number
- hour - Hours property
- isEmpty - Is timestamp empty
- minute - Minute property
- 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 - Second property
- setDate - Set date for timestamp value
- setTime - Set time for timestamp value
- subtractCentiseconds - Subtract centiseconds from time value
- subtractDays - Subtract days from date value
- subtractHours - Subtract hours from time value
- subtractMinutes - Subtract minutes from time value
- subtractMonths - Subtract month from date value
- subtractSeconds - Subtract seconds from time value
- subtractWorkingDays - Subtract number of working days from date value
- subtractYears - Subtract years from date value
- time - Time property
- toString - Convert timestamp to string
- toUnixTime - Get unix timestamp from ODABA date/time value
- year - Year property
- ~DateTime - Destructor