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

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

Example:

stringstream s;
s << "09.09.1974 21:59";
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.

Referenced by Time::JavaDate().

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