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