$date->ceil()
Rounds the datetime value up to next value of the specified unit
Parameters
Name | Type | Default | Description |
---|---|---|---|
$unit * | string |
– | year , month , day , hour , minute or second |
Return type
This method does not modify the existing $date
object but returns a new object with the changes applied. Learn more →
Exceptions
Type | Description |
---|---|
Kirby\Exception\InvalidArgumentException |
If the unit name is invalid |