Date - Date value
ODABA supports date values stored as integer number of days after 01.01.1870. In order to convert ODABA date values to other date formats, the class provides several conversion functions.
ODABA date values have to be interpreted by the application, i.e. ODABA does not request specific date values (as UTC or local date). In order to support conversion to standard date 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
- Date - Constructor
- addDays - Add days to date value
- addMonths - Add months to date value
- addWorkingDays - Add number of working days
- addYears - Add years to date value
- assign - Set date value
- clear - Set value to empty
- compare - Compare dates
- day - Get days from date
- dayOfWeek - Get day of week
- decade - Get decade number
- isEmpty - Is date empty
- month - Get number of month
- now - Set current date
- operator!= - Compare two date values (not equal)
- operator< - Compare two date values (less)
- operator<= - Compare two date values (less or equal)
- operator== - Compare two date values (equal)
- operator> - Compare two date values (greater)
- operator>= - Compare two date values (greater or equal)
- subtractDays - Subtract days from date value
- subtractMonths - Subtract month from date value
- subtractWorkingDays - Subtract number of working days from date value
- subtractYears - Subtract years from date value
- toDays - Convert date to number of days
- toString - Convert date to string
- toUnixTime - Get unix timestamp from ODABA date value
- year - Get number of years
- ~Date - Destructor