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

#include <Time.hpp>

List of all members.

Public Types

enum  Format { FMT_ISO = 0x0001, FMT_WIN_SHORT = 0x0002, FMT_WIN_LONG = 0x0003 }

Public Member Functions

 CTime ()
 CTime (WCL::Seconds tTime)
 CTime (int iHours, int iMins, int iSecs)
void Set ()
void Set (WCL::Seconds tTime)
void Set (int iHours, int iMins, int iSecs)
void Get (int &iHours, int &iMins, int &iSecs) const
void Hours (int iHours)
int Hours () const
void Mins (int iMins)
int Mins () const
void Secs (int iSecs)
int Secs () const
WCL::Seconds GetTimeInSecs () const
CString ToString (int nFormat=FMT_WIN_LONG) const
bool FromString (const tchar *pszTime)
bool operator== (const CTime &rRHS) const
bool operator!= (const CTime &rRHS) const
bool operator< (const CTime &rRHS) const
bool operator> (const CTime &rRHS) const
bool operator<= (const CTime &rRHS) const
bool operator>= (const CTime &rRHS) const
CTimeSpan operator- (const CTime &rRHS) const
void operator+= (const CTimeSpan &rRHS)
void operator-= (const CTimeSpan &rRHS)

Static Public Member Functions

static CTime Min ()
static CTime Max ()
static CTime Current ()
static CString FieldSeparator ()

Static Public Attributes

static const int MIN_HOURS = 0
static const int MAX_HOURS = 23
static const int MIN_MINS = 0
static const int MAX_MINS = 59
static const int MIN_SECS = 0
static const int MAX_SECS = 59

Protected Attributes

WCL::Seconds m_tTime

Friends

class CTimeSpan
class CDateTime
void operator>> (WCL::IInputStream &rStream, CTime &rTime)
void operator<< (WCL::IOutputStream &rStream, const CTime &rTime)

Member Enumeration Documentation

Enumerator:
FMT_ISO 
FMT_WIN_SHORT 
FMT_WIN_LONG 

Constructor & Destructor Documentation

CTime::CTime ( int  iHours,
int  iMins,
int  iSecs 
)

Member Function Documentation

CTime CTime::Min ( ) [inline, static]
CTime CTime::Max ( ) [inline, static]
void CTime::Set ( )
void CTime::Set ( WCL::Seconds  tTime) [inline]
void CTime::Set ( int  iHours,
int  iMins,
int  iSecs 
)
void CTime::Get ( int &  iHours,
int &  iMins,
int &  iSecs 
) const
void CTime::Hours ( int  iHours) [inline]
int CTime::Hours ( ) const [inline]
void CTime::Mins ( int  iMins) [inline]
int CTime::Mins ( ) const [inline]
void CTime::Secs ( int  iSecs) [inline]
int CTime::Secs ( ) const [inline]
WCL::Seconds CTime::GetTimeInSecs ( ) const [inline]
CTime CTime::Current ( ) [static]
CString CTime::ToString ( int  nFormat = FMT_WIN_LONG) const
bool CTime::FromString ( const tchar *  pszTime)
bool CTime::operator== ( const CTime rRHS) const [inline]
bool CTime::operator!= ( const CTime rRHS) const [inline]
bool CTime::operator< ( const CTime rRHS) const [inline]
bool CTime::operator> ( const CTime rRHS) const [inline]
bool CTime::operator<= ( const CTime rRHS) const [inline]
bool CTime::operator>= ( const CTime rRHS) const [inline]
CTimeSpan CTime::operator- ( const CTime rRHS) const [inline]
void CTime::operator+= ( const CTimeSpan rRHS) [inline]
void CTime::operator-= ( const CTimeSpan rRHS) [inline]

Friends And Related Function Documentation

friend class CTimeSpan [friend]
friend class CDateTime [friend]
void operator>> ( WCL::IInputStream rStream,
CTime rTime 
) [friend]
void operator<< ( WCL::IOutputStream rStream,
const CTime rTime 
) [friend]

Member Data Documentation

const int CTime::MIN_HOURS = 0 [static]
const int CTime::MAX_HOURS = 23 [static]
const int CTime::MIN_MINS = 0 [static]
const int CTime::MAX_MINS = 59 [static]
const int CTime::MIN_SECS = 0 [static]
const int CTime::MAX_SECS = 59 [static]

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