| 92 | } |
| 93 | |
| 94 | std::string millisecondsToString(int64_t milliseconds) { |
| 95 | return fmt::format( |
| 96 | "{:%Y-%m-%d %H:%M:%S}.{:0>3}", fmt::localtime(static_cast<time_t>(milliseconds / 1000)), milliseconds % 1000); |
| 97 | } |
| 98 | |
| 99 | std::string secondsToString(int64_t seconds) { |
| 100 | return fmt::format("{:%Y-%m-%d %H:%M:%S}", fmt::localtime(static_cast<time_t>(seconds))); |
no outgoing calls
no test coverage detected