9 int const power[] = {1000*1000, 100*1000, 10*1000, 1000, 100, 10, 1};
29 std::ios::fmtflags oldflags = os.flags();
31 localtime_r(&tod.
tv_.tv_sec, &timebuf);
32 typedef std::ostreambuf_iterator<char, std::char_traits<char> > Iter;
33 std::time_put<char, Iter>
const& tp = std::use_facet<std::time_put<char, Iter> >(std::locale());
34 int precision = os.precision();
37 char const pattern[] =
"%d-%b-%Y %H:%M:%S %Z";
38 tp.put(begin, os,
' ', &timebuf, pattern, pattern +
sizeof(pattern) - 1);
40 char const pattern[] =
"%d-%b-%Y %H:%M:%S.";
41 tp.put(begin, os,
' ', &timebuf, pattern, pattern +
sizeof(pattern) - 1);
43 os << std::setfill(
'0') << std::setw(precision) << tod.
tv_.tv_usec/power[precision] <<
' ';
44 tp.put(begin, os,
' ', &timebuf,
'Z');
static struct timeval setTime_()
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.