MCPcopy Create free account
hub / github.com/apache/arrow / Int96GetSeconds

Function Int96GetSeconds

cpp/src/parquet/types.h:750–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

748}
749
750static inline int64_t Int96GetSeconds(const parquet::Int96& i96) {
751 const auto decoded = DecodeInt96Timestamp(i96);
752 uint64_t seconds = decoded.nanoseconds / static_cast<uint64_t>(1000000000);
753 return static_cast<int64_t>(decoded.days_since_epoch * kSecondsPerDay + seconds);
754}
755
756static inline std::string Int96ToString(const Int96& a) {
757 std::ostringstream result;

Callers 1

TransferInt96Function · 0.85

Calls 1

DecodeInt96TimestampFunction · 0.85

Tested by

no test coverage detected