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

Method FloorUtcToUnixTimeMicros

be/src/runtime/timestamp-value.inline.h:152–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152inline bool TimestampValue::FloorUtcToUnixTimeMicros(int64_t* unix_time_micros) const {
153 DCHECK(unix_time_micros != nullptr);
154 if (UNLIKELY(!HasDateAndTime())) return false;
155
156 *unix_time_micros = DaysSinceUnixEpoch() * SECONDS_PER_DAY * MICROS_PER_SEC
157 + time_.total_microseconds();
158 return true;
159}
160
161inline bool TimestampValue::FloorUtcToUnixTimeMillis(int64_t* unix_time_millis) const {
162 DCHECK(unix_time_millis != nullptr);

Callers 4

ConvertTimestampMethod · 0.80
FloorToMicrosFunction · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 2

FloorToMicrosFunction · 0.64
TESTFunction · 0.64