home     download     screen shots     bugs     mailing list     example output     generated MFC docs     help     tools and utilities


 Overview   Project   Class   Tree   Index 
MFC Class Library
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

MFC
Class CTime

   in AFX.H

class CTime


Constructor Summary
CTime( time_t time )
          
CTime( int nYear, int nMonth, int nDay, int nHour, int nMin, int nSec, int nDST =-1 )
          
CTime( WORD wDosDate, WORD wDosTime, int nDST =-1 )
          
CTime( const CTime& timeSrc )
          
CTime( const SYSTEMTIME& sysTime, int nDST =-1 )
          
CTime( const FILETIME& fileTime, int nDST =-1 )
          
CTime()
          
 
Method Summary
 CString Format( LPCTSTR pFormat ) const
          
 CString Format( UINT nFormatID ) const
          
 CString FormatGmt( LPCTSTR pFormat ) const
          
 CString FormatGmt( UINT nFormatID ) const
          
 BOOL GetAsSystemTime( SYSTEMTIME& timeDest ) const
          
 static CTime PASCAL GetCurrentTime()
          
 int GetDay() const
          
 int GetDayOfWeek() const
          
 struct tm* GetGmtTm( struct tm* ptm = 0 ) const
          
 int GetHour() const
          
 struct tm* GetLocalTm( struct tm* ptm = 0 ) const
          
 int GetMinute() const
          
 int GetMonth() const
          
 int GetSecond() const
          
 time_t GetTime() const
          
 int GetYear() const
          
 BOOL operator!=( CTime time ) const
          
 CTime operator+( CTimeSpan timeSpan ) const
          
 const CTime& operator+=( CTimeSpan timeSpan )
          
 CTime operator-( CTimeSpan timeSpan ) const
          
 CTimeSpan operator-( CTime time ) const
          
 const CTime& operator-=( CTimeSpan timeSpan )
          
 BOOL operator<( CTime time ) const
          
 BOOL operator<=( CTime time ) const
          
 const CTime& operator=( const CTime& timeSrc )
          
 const CTime& operator=( time_t t )
          
 BOOL operator==( CTime time ) const
          
 BOOL operator>( CTime time ) const
          
 BOOL operator>=( CTime time ) const
          
 

Constructor Detail

CTime

public CTime( time_t time );

CTime

public CTime( int nYear, int nMonth, int nDay, int nHour, int nMin, int nSec, int nDST =-1 );

CTime

public CTime( WORD wDosDate, WORD wDosTime, int nDST =-1 );

CTime

public CTime( const CTime& timeSrc );

CTime

public CTime( const SYSTEMTIME& sysTime, int nDST =-1 );

CTime

public CTime( const FILETIME& fileTime, int nDST =-1 );

CTime

public CTime();


Method Detail

Format

public CString Format( LPCTSTR pFormat ) const;

Format

public CString Format( UINT nFormatID ) const;

FormatGmt

public CString FormatGmt( LPCTSTR pFormat ) const;

FormatGmt

public CString FormatGmt( UINT nFormatID ) const;

GetAsSystemTime

public BOOL GetAsSystemTime( SYSTEMTIME& timeDest ) const;

GetCurrentTime

public static CTime PASCAL GetCurrentTime();

GetDay

public int GetDay() const;

GetDayOfWeek

public int GetDayOfWeek() const;

GetGmtTm

public struct tm* GetGmtTm( struct tm* ptm = 0 ) const;

GetHour

public int GetHour() const;

GetLocalTm

public struct tm* GetLocalTm( struct tm* ptm = 0 ) const;

GetMinute

public int GetMinute() const;

GetMonth

public int GetMonth() const;

GetSecond

public int GetSecond() const;

GetTime

public time_t GetTime() const;

GetYear

public int GetYear() const;

operator!=

public BOOL operator!=( CTime time ) const;

operator+

public CTime operator+( CTimeSpan timeSpan ) const;

operator+=

public const CTime& operator+=( CTimeSpan timeSpan );

operator-

public CTime operator-( CTimeSpan timeSpan ) const;

operator-

public CTimeSpan operator-( CTime time ) const;

operator-=

public const CTime& operator-=( CTimeSpan timeSpan );

operator<

public BOOL operator<( CTime time ) const;

operator<=

public BOOL operator<=( CTime time ) const;

operator=

public const CTime& operator=( const CTime& timeSrc );

operator=

public const CTime& operator=( time_t t );

operator==

public BOOL operator==( CTime time ) const;

operator>

public BOOL operator>( CTime time ) const;

operator>=

public BOOL operator>=( CTime time ) const;

 Overview   Project   Class   Tree   Index 
MFC Class Library
CppDoc v2.4.1
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD