Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CTime Class Reference

List of all members.

Public Methods

 CTime ()
 CTime (t_int64, t_ulong=0)
CTime & operator+= (const CTime &)
CTime & operator-= (const CTime &)
bool operator== (const CTime &) const
bool operator!= (const CTime &) const
bool IsInfinite () const
void SetInfinite ()
void SetCurrent ()
void SetCurrentGMT ()
void SetCurrentLocalGMT ()
void Set (t_ulong, t_ulong, t_ulong, t_ulong=0, t_ulong=0, t_ulong=0, t_ulong=0)
Extra figures
Returns the number of X beyond the number of secondes. X represents :
  • milli-seconds
  • micro-seconds
  • nano-seconds


t_ulong GetExtraMilliSec () const
t_ulong GetExtraMicroSec () const
t_ulong GetExtraNanoSec () const
Return information about the current data before the call of the functions :
  • SetCourent
  • SetCurrentGMT


t_int64 GetNanoSec () const
t_int64 GetMicroSec () const
t_int64 GetMilliSec () const
t_int64 GetSec () const
t_int64 GetMinute () const
t_int64 GetHour () const
t_int64 GetDay () const
t_int64 GetWeek () const
Access functions
Return the total number of X that is contained in the object. X represents :
  • nano-seconds
  • seconds
  • minutes
  • hours
  • days
  • months
  • years


t_ulong Year () const
t_ulong Month () const
t_ulong Day () const
t_ulong Hour () const
t_ulong Minute () const
t_ulong Second () const
t_ulong NanoSecond () const

Friends

std::ostream & operator<< (std::ostream &, const CTime &)

Detailed Description

Wrappes the notion of time, date and so on. Based on the Sébasten Baron's implementation. Originlly created for the stx library, this class has been updated with some minor functions to be integrated in the Hyperion Pattern framework Definition World Time Standard:


Constructor & Destructor Documentation

CTime::CTime  
 

Constructor by default. The duration is infinite by default.

CTime::CTime t_int64   sec,
t_ulong   nsec = 0
 

Constructor with seconds and nanoseconds.


Member Function Documentation

bool CTime::IsInfinite   const
 

Returns true if the date represents an infinite time.

void CTime::Set t_ulong   Year,
t_ulong   Month,
t_ulong   Day,
t_ulong   Hour = 0,
t_ulong   Minute = 0,
t_ulong   Second = 0,
t_ulong   NanoSecond = 0
 

Sets the date.

void CTime::SetCurrent  
 

Sets the date to the current data in the local time zone.

Todo:
summer time

void CTime::SetCurrentGMT  
 

Sets the date to the GMT=0

void CTime::SetCurrentLocalGMT  
 

Sets the date to the local GMT time zone

void CTime::SetInfinite  
 

Sets the date to an infinited time.


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &   Stream,
const CTime &   Time
[friend]
 

Formats the date to a string.

Todo:
portée global des operateurs de flux


The documentation for this class was generated from the following files:
Top of Page
written by Pierre Rebours © 2000-2001. Terms of Use.