Problem
Parquet INT96 timestamp values need conversion before an application can use them as .NET DateTime values. Hex strings and BigInteger values require different input handling.
Approach
The public repository contains a single C# source file using System.Numerics. The Int96TimestampParser class exposes three helpers:
ParseInt96Timestamp(string)accepts a hex string.DateFromInt96Timestamp(BigInteger)accepts an integer value.DateFromInt96Timestamp2(BigInteger)provides a static conversion helper.
The hex-string path includes input-length and Julian-day range checks. The BigInteger helpers use separate conversion code.
Tradeoffs
- Copying one source file avoids a separate package dependency and requires manual updates.
- The three helpers have different validation and conversion code. Callers need to check the chosen path against representative input values.
Outcome
Public MIT-licensed C# source and usage examples for INT96 conversion. The repository does not include an automated test suite.