withPrecision method

Expr<T> withPrecision(
  1. int digits
)

Rounds to the requested fractional-second digits (0 through 6).

Implementation

Expr<T> withPrecision(int digits) {
  checkTemporalPrecision(digits);
  return Expr.internal(TemporalCast(expressionNode, 'time', digits), codec);
}