Windows C++ Library
Public Member Functions | Static Public Member Functions | Protected Attributes | Friends
CDateTime Class Reference

#include <DateTime.hpp>

List of all members.

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)

Constructor & Destructor Documentation

CDateTime::CDateTime ( int  iDay,
int  iMonth,
int  iYear,
int  iHours,
int  iMins,
int  iSecs 
)
CDateTime::CDateTime ( const CDate rDate,
const CTime rTime 
)

Member Function Documentation

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]
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]

Friends And Related Function Documentation

friend class CDateTimeSpan [friend]
void operator>> ( WCL::IInputStream rStream,
CDateTime rDateTime 
) [friend]
void operator<< ( WCL::IOutputStream rStream,
const CDateTime rDateTime 
) [friend]

Member Data Documentation


The documentation for this class was generated from the following files: