|
|
|
|
|
|
|
|
#include <sstream> |
|
|
#include <sstream> |
|
|
#include <iomanip> |
|
|
#include <iomanip> |
|
|
|
|
|
|
|
|
using namespace std; |
|
|
|
|
|
|
|
|
namespace cd = codedweller; |
|
|
|
|
|
|
|
|
//// DiscLogger //////////////////////////////////////////////////////////////// |
|
|
//// DiscLogger //////////////////////////////////////////////////////////////// |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return s; // return it. |
|
|
return s; // return it. |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
RuntimeCheck LocalTimestampGoodTimestampLength("snfLOGmgr.cpp:LocalTimestamp snprintf(...) == CorrectTimestampLength"); |
|
|
|
|
|
|
|
|
cd::RuntimeCheck LocalTimestampGoodTimestampLength("snfLOGmgr.cpp:LocalTimestamp snprintf(...) == CorrectTimestampLength"); |
|
|
|
|
|
|
|
|
string snfLOGmgr::LocalTimestamp(time_t t) { // Convert time_t to a local timestamp s. |
|
|
string snfLOGmgr::LocalTimestamp(time_t t) { // Convert time_t to a local timestamp s. |
|
|
char TimestampBfr[16]; // Create a small buffer. |
|
|
char TimestampBfr[16]; // Create a small buffer. |