#include <numbers.h>

Public Member Functions | |
| Date (time_t tm) | |
| Date (tm *dt) | |
| Date (char *str, size_t size=0) | |
| Date (int year, unsigned month, unsigned day) | |
| Date () | |
| virtual | ~Date () |
| int | getYear (void) const |
| unsigned | getMonth (void) const |
| unsigned | getDay (void) const |
| unsigned | getDayOfWeek (void) const |
| char * | getDate (char *buffer) const |
| time_t | getDate (void) const |
| time_t | getDate (tm *buf) const |
| long | getValue (void) const |
| void | setDate (const char *str, size_t size=0) |
| bool | isValid (void) const |
| operator long () const | |
| String | operator() () const |
| Date & | operator++ () |
| Date & | operator-- () |
| Date & | operator+= (const long val) |
| Date & | operator-= (const long val) |
| int | operator== (const Date &date) |
| int | operator!= (const Date &date) |
| int | operator< (const Date &date) |
| int | operator<= (const Date &date) |
| int | operator> (const Date &date) |
| int | operator>= (const Date &date) |
| bool | operator! () const |
Protected Member Functions | |
| void | toJulian (long year, long month, long day) |
| void | fromJulian (char *buf) const |
| virtual void | update (void) |
| A method to use to "post" any changed values when shadowing a mixed object class. | |
Protected Attributes | |
| long | julian |
Friends | |
| Date | operator+ (const Date &date, const long val) |
| Date | operator- (const Date &date, const long val) |
| Date | operator+ (const long val, const Date &date) |
| Date | operator- (const long val, const Date &date) |
This is then manipulated in several forms and may be exported as needed.
| ost::Date::Date | ( | time_t | tm | ) |
| ost::Date::Date | ( | tm * | dt | ) |
| ost::Date::Date | ( | char * | str, | |
| size_t | size = 0 | |||
| ) |
| ost::Date::Date | ( | int | year, | |
| unsigned | month, | |||
| unsigned | day | |||
| ) |
| ost::Date::Date | ( | ) |
| virtual ost::Date::~Date | ( | ) | [virtual] |
| void ost::Date::toJulian | ( | long | year, | |
| long | month, | |||
| long | day | |||
| ) | [protected] |
| void ost::Date::fromJulian | ( | char * | buf | ) | const [protected] |
| virtual void ost::Date::update | ( | void | ) | [protected, virtual] |
A method to use to "post" any changed values when shadowing a mixed object class.
This is used by DateNumber.
Reimplemented in ost::DateNumber.
| int ost::Date::getYear | ( | void | ) | const |
| unsigned ost::Date::getMonth | ( | void | ) | const |
| unsigned ost::Date::getDay | ( | void | ) | const |
| unsigned ost::Date::getDayOfWeek | ( | void | ) | const |
| char* ost::Date::getDate | ( | char * | buffer | ) | const |
| time_t ost::Date::getDate | ( | void | ) | const |
| time_t ost::Date::getDate | ( | tm * | buf | ) | const |
| long ost::Date::getValue | ( | void | ) | const |
| void ost::Date::setDate | ( | const char * | str, | |
| size_t | size = 0 | |||
| ) |
| bool ost::Date::isValid | ( | void | ) | const |
Reimplemented in ost::Datetime.
| ost::Date::operator long | ( | ) | const [inline] |
| String ost::Date::operator() | ( | ) | const |
| Date& ost::Date::operator++ | ( | ) |
| Date& ost::Date::operator-- | ( | ) |
| Date& ost::Date::operator+= | ( | const long | val | ) |
| Date& ost::Date::operator-= | ( | const long | val | ) |
| int ost::Date::operator== | ( | const Date & | date | ) |
| int ost::Date::operator!= | ( | const Date & | date | ) |
| int ost::Date::operator< | ( | const Date & | date | ) |
| int ost::Date::operator<= | ( | const Date & | date | ) |
| int ost::Date::operator> | ( | const Date & | date | ) |
| int ost::Date::operator>= | ( | const Date & | date | ) |
| bool ost::Date::operator! | ( | void | ) | const [inline] |
Reimplemented in ost::Datetime.
long ost::Date::julian [protected] |
1.5.4