我想将所提供的值舍入到半小时和小时。如何将分钟转成半小时和小时?
$Total_Minutes = 5 // should be 30 minutes
$Total_Minutes = 29 // should be 30 minutes
$Total_Minutes = 31 // should be 1 hour or 60 minutes
$Total_Minutes = 61 // should be 1 and half-hour or 90 minutes
这是可能得到这样的结果功能?
什么标准是每行 –
你可以根据自己的需要编写一个php函数。 –
https://stackoverflow.com/q/40783436/6521116 –