是否有一个简单的字符串格式,它将采用小数表示小时和小时的分数,并将其显示为小时和分钟?
例如:5.5格式化显示5小时30分钟.
我很乐意自己编写代码,但是如果可用的话,我更愿意使用现有的功能
这是一个例子
if 8.30 is there it should be 8 hours 30 minute
if 8 hour 20 minutes then 8.20
Please tell whether it is possible ? if yes
how ?
Run Code Online (Sandbox Code Playgroud)