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

Method FromDaysSinceUnixEpoch

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

Source from the content-addressed store, hash-verified

102}
103
104inline TimestampValue TimestampValue::FromDaysSinceUnixEpoch(int64_t days) {
105 static const boost::gregorian::date EPOCH(1970, 1, 1);
106 static const boost::posix_time::time_duration t(0, 0, 0);
107 return TimestampValue(EPOCH + boost::gregorian::date_duration(days), t);
108}
109
110inline int64_t TimestampValue::DaysSinceUnixEpoch() const {
111 DCHECK(HasDate());

Callers

nothing calls this directly

Calls 1

TimestampValueClass · 0.70

Tested by

no test coverage detected