37 os <<
"<?xml version=\"1.0\"?>"
38 <<
"<nfdStatus xmlns=\"ndn:/localhost/nfd/status/1\">";
50 for (
char ch : text.
s) {
78 return "PT" + to_string(d.count()) +
"S";
84 return time::toString(t,
"%Y-%m-%dT%H:%M:%S%F");
93 , m_subsequent(subsequent)
106 if (++sep.m_count == 1) {
107 return os << sep.m_first;
109 return os << sep.m_subsequent;
115 return to_string(d.count()) + (isLong ?
" seconds" :
"s");
121 return time::toIsoString(t);
std::string formatSeconds(time::seconds d, bool isLong)
std::ostream & operator<<(std::ostream &os, Separator &sep)
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
std::string formatTimestamp(time::system_clock::TimePoint t)
Separator(const std::string &first, const std::string &subsequent)
print different string on first and subsequent usage