MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / tm2Str

Function tm2Str

app/actions.cpp:1659–1669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1657} // time2Str
1658
1659std::string tm2Str(const tm* tm) {
1660 if (!tm)
1661 return "";
1662
1663 std::ostringstream os;
1664 os << std::setfill('0') << tm->tm_year + 1900 << ":" << std::setw(2) << tm->tm_mon + 1 << ":" << std::setw(2)
1665 << tm->tm_mday << " " << std::setw(2) << tm->tm_hour << ":" << std::setw(2) << tm->tm_min << ":" << std::setw(2)
1666 << tm->tm_sec;
1667
1668 return os.str();
1669} // tm2Str
1670
1671std::string temporaryPath() {
1672 static int count = 0;

Callers 1

time2StrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected