withPrecision method
Rounds to the requested fractional-second digits (0 through 6).
Implementation
Expr<T> withPrecision(int digits) {
checkTemporalPrecision(digits);
return Expr.internal(
TemporalCast(expressionNode, 'instant', digits),
codec,
);
}