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

Method DaysSinceUnixEpoch

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

Source from the content-addressed store, hash-verified

108}
109
110inline int64_t TimestampValue::DaysSinceUnixEpoch() const {
111 DCHECK(HasDate());
112 static const boost::gregorian::date epoch(1970,1,1);
113 return (date_ - epoch).days();
114}
115
116/// Interpret 'this' as a timestamp in UTC and convert to unix time.
117/// Returns false if the conversion failed ('unix_time' will be undefined), otherwise

Callers 1

CastToDateValMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected