Convenience function to convert Unix time, specified as seconds since the Unix epoch, into a C++ time_point object.
| 111 | // Convenience function to convert Unix time, specified as seconds since |
| 112 | // the Unix epoch, into a C++ time_point object. |
| 113 | static chrono::system_clock::time_point TimepointFromUnix(int64_t s) { |
| 114 | return chrono::system_clock::time_point(chrono::seconds(s)); |
| 115 | } |
| 116 | |
| 117 | // Convenience function to convert Unix time, specified as milliseconds since |
| 118 | // the Unix epoch, into a C++ time_point object. |
no outgoing calls
no test coverage detected