Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

mpcl::text::TGmtDate Class Reference

#include <gmt_date.hh>

Inheritance diagram for mpcl::text::TGmtDate:

mpcl::text::IDate List of all members.

Public Methods

 TGmtDate (const int kiYEAR, const int kiMONTH, const int kiDAY, const int kiHOUR=0, const int kiMINUTES=0, const int kiSECONDS=0)
 TGmtDate (const EDateType keDATE_TYPE=eNow) throw (TConstraintException)
TString get (const char *pkcDATE_FORMAT) const

Detailed Description

GMT date abstract data type.

Definition at line 46 of file gmt_date.hh.


Constructor & Destructor Documentation

mpcl::text::TGmtDate::TGmtDate const int    kiYEAR,
const int    kiMONTH,
const int    kiDAY,
const int    kiHOUR = 0,
const int    kiMINUTES = 0,
const int    kiSECONDS = 0
[inline]
 

Builds a new instance.

Parameters:
kiYEAR  Year.
kiMONTH  Month [1-12].
kiDAY  Day [1-31].
kiHOUR  Hour [0-23] (0).
kiMINUTES  Minutes [0-59] (0).
kiSECONDS  Seconds [0-59] (0).

Definition at line 64 of file gmt_date.hh.

mpcl::text::TGmtDate::TGmtDate const EDateType    keDATE_TYPE = eNow throw (TConstraintException) [inline]
 

Builds a new instance.

Parameters:
keDATE_TYPE  Type of the date to create.
See also:
EDateType.

Definition at line 82 of file gmt_date.hh.

References mpcl::text::IDate::EDateType.


Member Function Documentation

mpcl::text::TString mpcl::text::TGmtDate::get const char *    pkcDATE_FORMAT const [virtual]
 

Gets the current date in an specified std::strftime-like format.

See also:
std::strftime()

Implements mpcl::text::IDate.

Definition at line 37 of file gmt_date.cc.

References mpcl::text::IDate::_kiMaxFormattedDate, mpcl::text::IDate::tSecondsFromEpoch, and mpcl::text::TString.


The documentation for this class was generated from the following files:
Generated on Mon Oct 13 02:35:26 2003 for MPCL by doxygen1.2.18