#4126·date-fns

Support bigint values for timestamp

Author: imakspCreated Dec 16, 2025Updated Aug 27, 2026

It seems we can't use bigint values directly in functions like fromUnixTime. it would be good to allow both number and bigint.

Currently need to use something like this:

typescript
const openingTime = 1765885329n;
const date = fromUnixTime(Number(openingTime));