In the Carbon.php source file that comes with Laravel 8 it shows
* @method $this ceilMinute(float $precision = 1) Ceil the current instance minute with given precision.
* @method $this ceilMinutes(float $precision = 1) Ceil the current instance minute with given precision.
Basic testing shows that given input "2021-11-26 11:25:10.000000", both functions round it up to "2021-11-26 11:26:00.000000".
And I want to know is there any difference between these two functions?
Any help would be appreciated.
source https://stackoverflow.com/questions/70303989/what-is-the-difference-between-ceilminute-and-ceilminutes-in-php-carbon
No comments:
Post a Comment