当前位置:网站首页>Convert seconds to * * hours * * minutes
Convert seconds to * * hours * * minutes
2022-06-30 19:48:00 【imkaifan】
Convert seconds to :* Hours ** minute
getHourMinute(val) {
if (!val) {
return `0 Hours 0 minute `;
}
const int = parseInt(val, 10);
const hours = parseInt(int / (60 * 60), 10);
const leaveTime = int % (60 * 60);
const minutes = parseInt(leaveTime / 60, 10);
return `${
hours} Hours ${
minutes} minute `;
},
parseInt It's rounded :
parseInt(156457, 10)
// 156457
parseInt(156457/60, 10)
// 2607
2607*60
// 156420
边栏推荐
- 二叉树终章
- Inventory the six second level capabilities of Huawei cloud gaussdb (for redis)
- Friends in Guangzhou can join us if they have the opportunity
- 码蹄集 - MT3111· 赋值
- MySQL数据库查询优化
- Abaqus 2022软件安装包和安装教程
- Promise从认识到使用
- “更福特、更中国”拨云见日,长安福特王牌产品订单过万
- A necessary tool for testing -- postman practical tutorial
- 当我们在看待产业互联网的时候,总是会站在消费互联网的对立面来看待它
猜你喜欢

8 - 函数

qt中toLocal8Bit和toUtf8()有什么区别

《微信小程序-基础篇》带你了解小程序中的生命周期(二)

盘点华为云GaussDB(for Redis)六大秒级能力

数据智能——DTCC2022!中国数据库技术大会即将开幕

台湾SSS鑫创SSS1700替代Cmedia CM6533 24bit 96KHZ USB音频编解码芯片

The prospectus of pelt medical was "invalid" for the second time in the Hong Kong stock exchange, and the listing plan was substantially delayed

实现各种效果和功能的按钮,读这篇文章就够了

QQmlApplicationEngine failed to load component qrc:/main.qml:-1 No such file or directory

“更福特、更中国”拨云见日,长安福特王牌产品订单过万
随机推荐
Makefile笔记(一文学会Makefile)
yolo 目标检测
FH6908A负极关断同步整流模拟低压降二极管控制IC芯片TSOT23-6超低功耗整流器 1w功耗 <100uA静态 替代MP6908
Why do more and more people choose cloud rendering?
《微信小程序-基础篇》带你了解小程序中的生命周期(二)
漫画 | Oracle 被新时代抛弃了吗?
数据智能——DTCC2022!中国数据库技术大会即将开幕
Promise从认识到使用
十分之坑,tar命令解压文件的时候竟然不能解析英文括号“()”
8 - 函数
派尔特医疗在港交所招股书二次“失效”,上市计划实质性延迟
毕业季职场人
说实话ThreadLocal真不是啥高级的东西
await和async
Whether the SQL is indexed
科大讯飞活跃竞赛汇总!(12个)
Tencent conference application market was officially launched, with more than 20 applications in the first batch
4.3-inch touch screen 12 channel control port programmable network central control supports mutual backup of 5 central control hosts
dataloader 源码_DataLoader
Inventory the six second level capabilities of Huawei cloud gaussdb (for redis)