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

Parameters

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

Return Type