Project 1
|
#include "datetime.h"
Functions | |
ostream & | operator<< (ostream &out, const DateTime &dt) |
istream & | operator>> (istream &in, DateTime &dt) |
ostream& operator<< | ( | ostream & | out, |
const DateTime & | dt | ||
) |
istream& operator>> | ( | istream & | in, |
DateTime & | dt | ||
) |
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. Indirectly throws an exception if a value in the stream is invalid.
in | the input stream for extraction |
dt | the DateTime object for storing the extracted information |
invalid_argument | if an argument's value is invalid |