74 void getDateParts(
int* year,
short* month,
short*
day,
short* hour,
short* minute,
short*
second)
const;
75 int getYear(
void)
const;
76 int getMonth(
void)
const;
77 int getDay(
void)
const;
78 int getHour(
void)
const;
79 int getMinute(
void)
const;
80 int getSecond(
void)
const;
82 const char* asString(
const char*
format)
const;
bool operator<(const DateTime &other) const
Decides if the left DateTime is earlier than the right one.
DateTime & operator+=(const DateTime &other)
Adds a DateTime (duration) to the left DateTime object.
bool operator>=(const DateTime &other) const
Decides if the left DateTime is later or equal to the right one.
static const short HOURS_PER_DAY
static const short SEASONS_PER_YEAR
DateTime(int day=0, int second=0)
Construct for DateTime class from date as days and time as seconds.
static const int SECONDS_PER_DAY
int getTimeAsSeconds() const
Return the time part of the DateTime as seconds.
bool operator==(const DateTime &other) const
Decides whether two DateTimes are equal.
void reCalculate(void)
Handle over- and underflowing date/time parts.
static const short SECONDS_PER_MINUTE
bool operator!=(const DateTime &other) const
Decides whether two DateTimes are different.
DateTime operator+(const DateTime &other) const
Calcluate the summary of two DateTime objects in a new one.
static const short MONTHS_PER_YEAR
static const short MINUTES_PER_HOUR
static const short SECONDS_PER_HOUR
bool operator>(const DateTime &other) const
Decides if the left DateTime is later than the right one.
bool operator<=(const DateTime &other) const
Decides if the left DateTime is earlier or equal to the right one.
static const int DAYS_PER_YEAR
DateTime operator-(const DateTime &other) const
Calcluate the difference of two DateTime objects in a new one.
DateTime & operator-=(const DateTime &other)
Substracts a DateTime (duration) from the left DateTime object.
static constexpr float DAYS_PER_YEAR_AVG
int getDateAsDays() const
Return the date part of the DateTime as days.
void format(__printf__, 1, 2)))