Date::roundedTimestamp()
Rounds the minutes of the given date by the defined step
Date::roundedTimestamp(string|null $date = null, int|array|null $step = null): int|null
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $date | stringornull |
null
|
|
| $step | intorarrayornull |
null
|
array of unit and size to round to nearest |
Return types
intornull