Answers for "carbon to hours minutes seconds"

PHP
0

change minutes in to hours carbon

You can use:
----------------
$minutes = 1510;
$hours = intdiv($minutes, 60).':'. ($minutes % 60);
!!! This only works with php >= v7.xx

Previous answer:
-------------------
$minutes = 1510;
$hours = floor($minutes / 60).':'.($minutes - floor($minutes / 60) * 60);
Posted by: Guest on July-24-2020
0

Convert Carbon Seconds Into Days Hours Minute

CarbonInterval::seconds(90060)->cascade()->forHumans();
Posted by: Guest on August-21-2021

Code answers related to "carbon to hours minutes seconds"

Browse Popular Code Answers by Language