Skip to content

Kirby 3.8.4

Date::roundedTimestamp()

Rounds the minutes of the given date by the defined step

Date::roundedTimestamp(string $date = null, int|array|null $step = null): int|null

Parameters

Name Type Default Description
$date string null
$step int|array|null null array of unit and size to round to nearest

Return type

int|null

Parent class

Kirby\Toolkit\Date