What is the difference between ceilMinute and ceilMinutes in PHP Carbon? - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Saturday, December 11, 2021

What is the difference between ceilMinute and ceilMinutes in PHP Carbon?

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