📌  相关文章
📜  将分钟更改为小时碳 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:45.954000             🧑  作者: Mango

代码示例1
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);