Public Methods |
| CSimpleDate (int FormatType=MMDDYYYY) |
| CSimpleDate (LPCSTR DateString, int FormatType=MMDDYYYY) |
| CSimpleDate (long JD, int FormatType=MMDDYYYY) |
virtual | ~CSimpleDate () |
const CSimpleDate & | AddDays (int Days) |
const CSimpleDate & | AddYears (int Yrs) |
const CSimpleDate & | AddMonths (int Mon) |
const CSimpleDate & | SubtractYears (int Yrs) |
const CSimpleDate & | SubtractDays (int Days) |
const CSimpleDate & | SubtractMonths (int Mon) |
virtual int | YearsOld () |
LPCSTR | GetFullDateString () |
LPCSTR | GetFullDateStringLong () |
virtual int | GetDayOfWeek () |
virtual bool | IsValid () const |
long | GetJulianDate () |
virtual int | GetDay () |
virtual int | GetMonth () |
virtual int | GetYear () |
virtual void | GetIntegerDate (int &m, int &d, int &y) |
virtual int | GetHour () |
virtual int | GetMin () |
virtual int | GetSeconds () |
virtual void | GetTimeString (LPSTR s, int nLen, bool AmPm=true) |
virtual void | GetTimeStringShort (LPSTR s, int nLen, bool AmPm=true) |
| operator LPCSTR () |
| operator long () const |
const CSimpleDate & | operator= (const CSimpleDate &Date) |
const CSimpleDate & | operator= (LPCSTR Date) |
bool | operator> (const CSimpleDate &Date) const |
bool | operator< (const CSimpleDate &Date) const |
bool | operator>= (const CSimpleDate &Date) const |
bool | operator<= (const CSimpleDate &Date) const |
bool | operator== (const CSimpleDate &Date) const |
bool | operator!= (const CSimpleDate &Date) const |
bool | operator> (LPCSTR Date) const |
bool | operator< (LPCSTR Date) const |
bool | operator>= (LPCSTR Date) const |
bool | operator<= (LPCSTR Date) const |
bool | operator== (LPCSTR Date) const |
bool | operator!= (LPCSTR Date) const |
Static Public Methods |
bool | VerifyDateFormat (LPCSTR date) |
bool | FixDateFormat (LPSTR date) |
Protected Methods |
virtual bool | SetToday () |
virtual bool | CSimpleDate::ParseDateString (LPCSTR, int &m, int &d, int &y) |
virtual bool | ParseDateString (LPCSTR) |
virtual long | ConvertToJulian (int month, int day, int year) |
virtual long | ConvertToJulian () |
virtual void | ConvertFromJulian (int &Month, int &Day, int &Year) |
virtual void | ConvertFromJulian () |
virtual void | AdjustDays () |
virtual void | SetTime () |
Protected Attributes |
int | m_Year |
int | m_Month |
int | m_Day |
long | m_JulianDate |
int | m_Format |
char | m_DateString [80] |
int | m_Hour |
int | m_Min |
int | m_Second |
bool | m_bPM |