Skip to content

Kirby 6.0.1

Date::roundedTimestamp()

Rounds the minutes of the given date by the defined step

Date::roundedTimestamp(string|null $date = null, int|array{unit?: string, size?: int}|null $step = null): int|null

Parameters

Name Type Default
$date stringornull null
$step intorarray{unit?: string, size?: int}ornull null

Return types

intornull

Parent class

Kirby\Toolkit\Date