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

Function FloorToSeconds

be/src/runtime/timestamp-test.cc:306–311  ·  view source on GitHub ↗

Convenience functions for TimestampValue->Unix time conversion that assume that the conversion is successful.

Source from the content-addressed store, hash-verified

304// Convenience functions for TimestampValue->Unix time conversion that assume that
305// the conversion is successful.
306int64_t FloorToSeconds(const TimestampValue& ts) {
307 EXPECT_TRUE(ts.HasDateAndTime());
308 int64_t result = 0;
309 EXPECT_TRUE(ts.UtcToUnixTime(&result));
310 return result;
311}
312
313int64_t RoundToMicros(const TimestampValue& ts) {
314 EXPECT_TRUE(ts.HasDateAndTime());

Callers 1

TESTFunction · 0.85

Calls 2

HasDateAndTimeMethod · 0.80
UtcToUnixTimeMethod · 0.80

Tested by

no test coverage detected