Temporal.Instant.prototype.round - Web documentation
method Temporal.Instant.prototype.round
Instant.prototype.round(roundTo: RoundTo<
"hour"
| "minute"
| "second"
| "millisecond"
| "microsecond"
| "nanosecond"
>
): Temporal.Instant

Parameters

roundTo: RoundTo<
"hour"
| "minute"
| "second"
| "millisecond"
| "microsecond"
| "nanosecond"
>

Return Type