| 52 | } |
| 53 | |
| 54 | std::string timestampToTod(time_t time_v) |
| 55 | { |
| 56 | std::tm *timeReadable = gmtime(&time_v); |
| 57 | return (timeReadable->tm_hour > 9 ? std::to_string(timeReadable->tm_hour) : "0" + std::to_string(timeReadable->tm_hour)) + ":" + // Hour HH |
| 58 | (timeReadable->tm_min > 9 ? std::to_string(timeReadable->tm_min) : "0" + std::to_string(timeReadable->tm_min)) + ":" + // Minutes mm |
| 59 | (timeReadable->tm_sec > 9 ? std::to_string(timeReadable->tm_sec) : "0" + std::to_string(timeReadable->tm_sec)); // Seconds ss |
| 60 | } |
| 61 | |
| 62 | void STDCParserModule::process_final_pkt(nlohmann::json &msg) |
| 63 | { |