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

mpcl::text::TLocalDate Class Reference

#include <local_date.hh>

Inheritance diagram for mpcl::text::TLocalDate:

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

Public Methods

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

Detailed Description

Local date abstract data type.

Definition at line 46 of file local_date.hh.


Constructor & Destructor Documentation

mpcl::text::TLocalDate::TLocalDate 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 local_date.hh.

mpcl::text::TLocalDate::TLocalDate 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 83 of file local_date.hh.

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


Member Function Documentation

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

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

See also:
std::strftime().

Implements mpcl::text::IDate.

Definition at line 37 of file local_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