MCPcopy Create free account
hub / github.com/apache/impala / TimepointFromUnixMillis

Function TimepointFromUnixMillis

be/src/util/time.cc:119–121  ·  view source on GitHub ↗

Convenience function to convert Unix time, specified as milliseconds since the Unix epoch, into a C++ time_point object.

Source from the content-addressed store, hash-verified

117// Convenience function to convert Unix time, specified as milliseconds since
118// the Unix epoch, into a C++ time_point object.
119static chrono::system_clock::time_point TimepointFromUnixMillis(int64_t ms) {
120 return chrono::system_clock::time_point(chrono::milliseconds(ms));
121}
122
123// Convenience function to convert Unix time, specified as microseconds since
124// the Unix epoch, into a C++ time_point object.

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected