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

Function TimepointFromUnix

be/src/util/time.cc:113–115  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

111// Convenience function to convert Unix time, specified as seconds since
112// the Unix epoch, into a C++ time_point object.
113static 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.

Callers 2

ToStringFromUnixMethod · 0.85
ToUtcStringFromUnixMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected