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

Function Int96GetSeconds

cpp/src/parquet/types.h:758–762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756}
757
758static inline int64_t Int96GetSeconds(const parquet::Int96& i96) {
759 const auto decoded = DecodeInt96Timestamp(i96);
760 uint64_t seconds = decoded.nanoseconds / static_cast<uint64_t>(1000000000);
761 return static_cast<int64_t>(decoded.days_since_epoch * kSecondsPerDay + seconds);
762}
763
764static inline std::string Int96ToString(const Int96& a) {
765 std::ostringstream result;

Callers 1

TransferInt96Function · 0.85

Calls 1

DecodeInt96TimestampFunction · 0.85

Tested by

no test coverage detected