Skip to main content
Temporal.ZonedDateTime.prototype.round - Temporal - Web documentation
method Temporal.ZonedDateTime.prototype.round
ZonedDateTime.prototype.round(roundTo: RoundTo<
"day"
| "hour"
| "minute"
| "second"
| "millisecond"
| "microsecond"
| "nanosecond"
>
): Temporal.ZonedDateTime

Parameters

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

Return Type