Purpose:
DKDate is a class to hold the date data type. When represented as a string, the default format of DKDate is yyyy-mm-dd, as required by the majority of datastores. DKDDO supports DKDate objects; that is, it can send an attribute with DKDate type, in and out of a datastore.
Class summary:
class DKDate { public: typedef enum Month (January=1, February, March, April, May, June, July, August, September, October, November, December); DKDate(Month nMonth, int nDay, int nYear); DKDate(int nDay, Month nMonth, int nYear); DkDate(int nYear, int mm, int nDay); DKDate(const DKDate& date); DKDate(); DKDate(const char* dateString); virtual DKDate(); dkString asString(const char* pFormat) const; int getYear() const; int getMonth() const; int getDay() const; static dkDate fromString(const char* dateString); friend ostream& operator << (ostream& outstream, const DKDate& date); DKBoolean operator== (const DKDate& date) const; DKBoolean operator!= (const DKDate& date) const; };
Members:
DKDate(Month nMonth, int nDay, int nYear); DKDate(int nDay, Month nMonth, int nYear); DKDate(int nYear, int mm, int nDay); DKDate(const DKDate& date); DKDate(); DKDate(const char* dateString);
dkString asString(const char * pFormat) const;
int getYear() const;
int getMonth() const;
int getDay() const;
ostream& operator << (ostream& outstream, const DKDate& date);
dkDate fromString (const char* dateString);
(c) Copyright International Business Machines Corporation 1996, 2003. IBM Corp. All rights reserved.