| 79 | } |
| 80 | |
| 81 | const std::string getDailyLogString( const std::string& format ) |
| 82 | { |
| 83 | time_t timeSinceEpoch = time( NULL ); |
| 84 | struct tm *now = localtime( &timeSinceEpoch ); |
| 85 | |
| 86 | char result[100]; |
| 87 | strftime( result, sizeof( result ), format.c_str(), now ); |
| 88 | |
| 89 | return result; |
| 90 | } |
| 91 | |
| 92 | } // anonymous namespace |
| 93 |
no test coverage detected