509 for (
const auto& src: obs)
512 if (src.preobs.size()>0)
514 for (
const auto& pre: src.preobs)
516 cout << tm <<
" " << pre <<
"\n";
521 cout << tm <<
" " << src.name <<
" [";
522 cout << src.duration()*24*60 <<
"'";
523 if (src.name!=
"SLEEP")
524 cout <<
Tools::Form(
"; %.1f/%.1f", src.zd(src.begin), src.zd(src.end));
527 if (src.duration()*24*60<40)
532 cout <<
Time(obs.back().end).GetAsStr() <<
" SHUTDOWN" << endl;
Adds some functionality to boost::posix_time::ptime for our needs.
std::string GetAsStr(const char *fmt="%Y-%m-%d %H:%M:%S") const