datetime.cc File Reference

#include "datetime.h"

Functions

ostream & operator<< (ostream &out, const DateTime &dt)
istream & operator>> (istream &in, DateTime &dt) throw ( invalid_argument )

Function Documentation

ostream& operator<< ( ostream &  out,
const DateTime dt 
)

Inserts a DateTime object in the format "MM/DD/YY HH:MM [AM|PM]" into the output stream, and returns the modified output stream.

Parameters:
out the output stream for insertion
dt the DateTime object for insertion
Returns:
the modified output stream
istream& operator>> ( istream &  in,
DateTime dt 
) throw ( invalid_argument )

Extracts a DateTime object in the format "MM/DD/YY HH:MM [AM|PM]" from the input stream, and returns the modified input stream. Sets the fail bit of the input stream if the object is improperly formatted. Throws an exception if a value is invalid.

Parameters:
in the input stream for extraction
dt the DateTime object for storing the extracted information
Returns:
the modified input stream
Exceptions:
invalid_argument if an argument's value is invalid
Generated on Thu Jan 24 09:03:33 2013 by  doxygen 1.6.3