23 #ifndef __ccxx_Date_hxx 24 #define __ccxx_Date_hxx 64 enum Weekday { Invalid = 0, Monday, Tuesday, Wednesday, Thursday, Friday,
80 void setMonth(
uint_t month);
107 uint_t getDayOfYear()
const;
110 static bool isLeapYear(
uint_t year);
116 uint_t getWeekOfYear()
const;
119 bool isValid()
const;
126 {
return(!
operator==(other)); }
129 {
return(!
operator<=(other)); }
132 {
return(!
operator<(other)); }
149 void _recalculate()
const;
154 #endif // __ccxx_Date_hxx bool operator!=(const Date &other) const
Definition: Date.h++:125
static const uint_t MAY
The month of May.
Definition: Date.h++:48
static const uint_t APR
The month of April.
Definition: Date.h++:46
A representation of a calendar date.
Definition: Date.h++:35
bool operator>=(const Date &other) const
Definition: Date.h++:131
uint_t getMonth() const
Get the month component of the date.
Definition: Date.h++:92
static const uint_t NOV
The month of November.
Definition: Date.h++:60
bool operator<=(const Blob &b1, const Blob &b2)
Definition: Blob.h++:356
bool operator>(const Date &other) const
Definition: Date.h++:128
bool operator==(const Blob &b1, const Blob &b2)
Definition: Blob.h++:344
unsigned int uint_t
An alias for unsigned int.
Definition: Integers.h++:74
Weekday
Definition: Date.h++:64
static const uint_t JUL
The month of July.
Definition: Date.h++:52
static const uint_t SEP
The month of September.
Definition: Date.h++:56
static const uint_t AUG
The month of August.
Definition: Date.h++:54
static const uint_t OCT
The month of October.
Definition: Date.h++:58
uint_t getDay() const
Get the day-of-month component of the date.
Definition: Date.h++:96
uint_t getYear() const
Get the year component of the date.
Definition: Date.h++:100
#define COMMONCPP_API
Definition: Common.h++:126
static const uint_t FEB
The month of February.
Definition: Date.h++:42
static const uint_t MAR
The month of March.
Definition: Date.h++:44
bool operator<(const Blob &b1, const Blob &b2)
Definition: Blob.h++:350
static const uint_t JUN
The month of June.
Definition: Date.h++:50
Definition: AllocationMap.c++:25
static const uint_t JAN
The month of January.
Definition: Date.h++:40
static const uint_t DEC
The month of December.
Definition: Date.h++:62