withPrecision method
Match PostgreSQL TIMESTAMP(p): exact halves round away from 2000-01-01.
Implementation
LocalDateTime withPrecision(int digits) => add(
Duration(
microseconds: _temporalRoundDelta(
time.microseconds,
digits,
beforeEpoch: date.julianDay < 2451545,
),
),
);