skip to content

Reading the BigIntCsharp INT96 helpers

[DATA]

The public BigIntCsharp repository contains a C# source file for Parquet INT96 timestamp conversion. Its Int96TimestampParser class returns .NET DateTime values through three entry points.

Hex-string input

ParseInt96Timestamp(string) checks the input length and parses pairs of hexadecimal characters into bytes. It reads separate time and day values, checks a Julian-day range, and constructs a DateTime value.

BigInteger input

The same class provides DateFromInt96Timestamp(BigInteger) and the static DateFromInt96Timestamp2(BigInteger). These helpers use separate code from the hex-string method and do not share its input-length and Julian-day range checks.

Validation scope

The public repository includes source and usage examples, but no automated test suite. Before using a helper with a dataset, check known input and output pairs, malformed values, date boundaries and the required precision. Those checks would establish the behavior needed by that application.