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