FACT++  1.0
std::istream& operator>> ( istream &  in,
const _time_format f 
)

Sets the locale discription of the stream (the way how a time is input) to the format defined by the given manipulator.

Example:

1 stringstream s;
2 s << "09.09.1974 21:59";
3 
4 Time t;
5 s >> Time::fmt("%d.%m.%Y %H:%M") >> t;
Parameters
inReference to the stream
fTime format described by a manipulator
Returns
A reference to the stream

Definition at line 473 of file Time.cc.

References _time_format::ptr.

474 {
475  const locale loc(locale::classic(),
476  f.ptr==0 ? 0 : new time_input_facet(f.ptr));
477 
478  in.imbue(loc);
479 
480  return in;
481 }
const char * ptr
Definition: Time.h:22