| 1657 | } // time2Str |
| 1658 | |
| 1659 | std::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 | |
| 1671 | std::string temporaryPath() { |
| 1672 | static int count = 0; |