Windows C++ Library
|
#include <DateTime.hpp>
Public Member Functions | |
CDateTime () | |
CDateTime (WCL::Seconds tDateTime) | |
CDateTime (int iDay, int iMonth, int iYear, int iHours, int iMins, int iSecs) | |
CDateTime (const CDate &rDate, const CTime &rTime) | |
void | Set () |
void | Set (WCL::Seconds tDateTime) |
void | Set (int iDay, int iMonth, int iYear, int iHours, int iMins, int iSecs) |
void | Get (int &iDay, int &iMonth, int &iYear, int &iHours, int &iMins, int &iSecs) const |
CDate | Date () const |
void | Date (const CDate &rDate) |
CTime | Time () const |
void | Time (const CTime &rTime) |
WCL::Seconds | GetDateTimeInSecs () const |
CString | ToString (int nDateFormat=CDate::FMT_WIN_SHORT, int nTimeFormat=CTime::FMT_WIN_LONG) const |
bool | FromString (const tchar *pszDateTime) |
bool | operator== (const CDateTime &rRHS) const |
bool | operator!= (const CDateTime &rRHS) const |
bool | operator< (const CDateTime &rRHS) const |
bool | operator> (const CDateTime &rRHS) const |
bool | operator<= (const CDateTime &rRHS) const |
bool | operator>= (const CDateTime &rRHS) const |
CDateTimeSpan | operator- (const CDateTime &rRHS) const |
void | operator-= (const CDateTimeSpan &rRHS) |
Static Public Member Functions | |
static CDateTime | Min () |
static CDateTime | Max () |
static CDateTime | Current () |
static CDateTime | FromLocalTime (time_t tDateTime) |
Protected Attributes | |
WCL::Seconds | m_tDateTime |
Friends | |
class | CDateTimeSpan |
void | operator>> (WCL::IInputStream &, CDateTime &rDateTime) |
void | operator<< (WCL::IOutputStream &, const CDateTime &rDateTime) |
CDateTime::CDateTime | ( | WCL::Seconds | tDateTime | ) |
CDateTime::CDateTime | ( | int | iDay, |
int | iMonth, | ||
int | iYear, | ||
int | iHours, | ||
int | iMins, | ||
int | iSecs | ||
) |
CDateTime::CDateTime | ( | const CDate & | rDate, |
const CTime & | rTime | ||
) |
CDateTime CDateTime::Min | ( | ) | [inline, static] |
CDateTime CDateTime::Max | ( | ) | [inline, static] |
void CDateTime::Set | ( | ) | [inline] |
void CDateTime::Set | ( | WCL::Seconds | tDateTime | ) | [inline] |
void CDateTime::Set | ( | int | iDay, |
int | iMonth, | ||
int | iYear, | ||
int | iHours, | ||
int | iMins, | ||
int | iSecs | ||
) | [inline] |
void CDateTime::Get | ( | int & | iDay, |
int & | iMonth, | ||
int & | iYear, | ||
int & | iHours, | ||
int & | iMins, | ||
int & | iSecs | ||
) | const [inline] |
CDate CDateTime::Date | ( | ) | const [inline] |
void CDateTime::Date | ( | const CDate & | rDate | ) | [inline] |
CTime CDateTime::Time | ( | ) | const [inline] |
void CDateTime::Time | ( | const CTime & | rTime | ) | [inline] |
WCL::Seconds CDateTime::GetDateTimeInSecs | ( | ) | const [inline] |
CDateTime CDateTime::Current | ( | ) | [static] |
CDateTime CDateTime::FromLocalTime | ( | time_t | tDateTime | ) | [static] |
CString CDateTime::ToString | ( | int | nDateFormat = CDate::FMT_WIN_SHORT , |
int | nTimeFormat = CTime::FMT_WIN_LONG |
||
) | const [inline] |
bool CDateTime::FromString | ( | const tchar * | pszDateTime | ) |
bool CDateTime::operator== | ( | const CDateTime & | rRHS | ) | const [inline] |
bool CDateTime::operator!= | ( | const CDateTime & | rRHS | ) | const [inline] |
bool CDateTime::operator< | ( | const CDateTime & | rRHS | ) | const [inline] |
bool CDateTime::operator> | ( | const CDateTime & | rRHS | ) | const [inline] |
bool CDateTime::operator<= | ( | const CDateTime & | rRHS | ) | const [inline] |
bool CDateTime::operator>= | ( | const CDateTime & | rRHS | ) | const [inline] |
CDateTimeSpan CDateTime::operator- | ( | const CDateTime & | rRHS | ) | const [inline] |
void CDateTime::operator-= | ( | const CDateTimeSpan & | rRHS | ) | [inline] |
friend class CDateTimeSpan [friend] |
void operator>> | ( | WCL::IInputStream & | rStream, |
CDateTime & | rDateTime | ||
) | [friend] |
void operator<< | ( | WCL::IOutputStream & | rStream, |
const CDateTime & | rDateTime | ||
) | [friend] |
WCL::Seconds CDateTime::m_tDateTime [protected] |