FACT++  1.0
std::ostream& operator<< ( ostream &  out,
const _time_format f 
)

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

Example:

1 Time t();
2 cout << Time::fmt("%Y:%m:%d %H:%M:%S.%f") << t << endl;
Parameters
outReference to the stream
fTime format described by a manipulator
Returns
A reference to the stream

Definition at line 440 of file Time.cc.

References _time_format::ptr.

441 {
442  const locale loc(locale::classic(),
443  f.ptr==0 ? 0 : new time_facet(f.ptr));
444 
445  out.imbue(loc);
446 
447  return out;
448 }
const char * ptr
Definition: Time.h:22