Skip to main content
Temporal.Instant.prototype.round - Temporal - 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

Back to top