#include <Date.h>
Collaboration diagram for Date:
Public Methods | |
Date () | |
Date (int day_, int month_, int year_) | |
Date (const std::tm &date_) | |
Date (const Date &other) | |
Date & | operator= (const Date &other) |
virtual | ~Date () |
bool | is_valid () const |
const std::tm & | get_Date () const |
int | is_Feiertag () const |
void | inc (int offset=1) |
void | dec (int offset=1) |
int | year () const |
int | month () const |
int | day () const |
int | dayOfWeek () const |
Private Methods | |
void | init (const std::time_t &time_) |
void | init (const std::tm &date_) |
void | init (int day, int month, int year) |
void | correct () |
Private Attributes | |
std::time_t | time |
std::tm | date |
bool | valid |
Definition at line 38 of file Date.h.
|
create the current Date |
|
create a new date (clock is set to 00:00.00 ) |
|
create a new date from struct tm |
|
|
|
|
Definition at line 44 of file Date.cpp. Referenced by Date::correct(), and Date::init(). |
|
|
|
|
|
|
|
assign a Date |
|
|
returns date as 'struct tm' |
|
returns zero if date is no 'Feiertag' (= german holiday), index otherwise |
|
increment date
|
|
decrement date
|
|
returns year Definition at line 98 of file Date.h. Referenced by Date::is_Feiertag(). |
|
returns month |
|
returns day of month |
|
returns day of week (0 for sunday) |
|
Definition at line 40 of file Date.h. Referenced by Date::Date(), Date::init(), and Date::operator=(). |
|
Definition at line 41 of file Date.h. Referenced by Date::correct(), Date::Date(), Date::init(), and Date::operator=(). |
|
Definition at line 42 of file Date.h. Referenced by Date::Date(), Date::init(), and Date::operator=(). |
Contact me in case of errors or questions. This documentation is powered by ![]() |
(C) 2000-2002 ![]() |