26 DateTime(
int mm,
int dd,
int yy,
int h,
int m,
string period )
throw ( invalid_argument );
27 bool operator==(
const DateTime& dt )
const;
28 bool operator!=(
const DateTime& dt )
const;
29 bool operator<(
const DateTime& dt )
const;
30 bool operator>(
const DateTime& dt )
const;
31 void print( ostream& out = cout )
const;
32 void setDate(
int mm,
int dd,
int yy )
throw ( invalid_argument );
33 void setTime(
int h,
int m,
string period )
throw ( invalid_argument );
49 unsigned long toLong()
const;
Definition: datetime.h:18
ostream & operator<<(ostream &out, const DateTime &dt)
Definition: datetime.cc:207
int h
Definition: datetime.h:43
istream & operator>>(istream &in, DateTime &dt)
Definition: datetime.cc:234
int m
Definition: datetime.h:45
int dd
Definition: datetime.h:39
string period
Definition: datetime.h:47
int mm
Definition: datetime.h:37
int yy
Definition: datetime.h:41