#include <date.h>
Public Methods | |
Date (int day, int month, int year) | |
Date () | |
Date (const string &str, int yearsize=4) | |
Date (const struct tm *tm) | |
bool | isValid () const |
string | toString () const |
int | day () const |
int | month () const |
int | year () const |
tm | to_tm () const |
time_t | to_time_t () const |
int | compare (const Date &d) const |
int | compareTime (const Time &t1, const Date &d2, const Time &t2) const |
Represents a date in Openhbci.
|
Create a Data.
|
|
Creates a blank date; day, month, and year are set to zero. |
|
creates a date from a string containing a HBCI conform date
|
|
Create a Date when given a struct tm (see ctime(3)). |
|
Compares the date of this object with the one given as argument. (This method is used by the operators.)
|
|
Compares Date and Time with another given Date and Time. Argument t1 and this object are the one point in time, and arguments Date d2 and Time t2 are the other point in time.
|
|
Returns the stored day of the month, in the range 1 to 31.
|
|
Checks the date, and tells whether the date is valid. Please note: At some places in HBCI, even the Feb 31 is valid. That represents the date of actions that occur "on the last day of each month". Therefore those dates are seen as valid in this method.
|
|
Returns the stored month of the year, in the range of 1 (January) to 12 (December).
|
|
Returns this date as a time_t value (see time(2)), but only the fields tm_mday, tm_mon, and tm_year are used. |
|
Returns this date as a struct tm (see ctime(3)), but only the fields tm_mday, tm_mon, and tm_year are used. All other fields are still zero. |
|
Returns a hbci-conform string representation of given date (YYYYMMDD) |
|
Returns the stored year, which is the absolute number of years from year zero.
|