当前位置:网站首页>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
边栏推荐
- Understanding of event queue, micro task and macro task and interview questions
- Safe holidays without holidays, VR traffic makes children travel safely | Guangzhou Sinovel viewpoint
- What securities dealers recommend? In addition, is it safe to open a mobile account?
- 十分之坑,tar命令解压文件的时候竟然不能解析英文括号“()”
- 4.3-inch touch screen 12 channel control port programmable network central control supports mutual backup of 5 central control hosts
- ArcGIS no plug-in load (no offset) day map
- SSM整合流程(整合配置、功能模块开发、接口测试)
- 昔日果汁大王,16个亿卖了
- 企业中通过组策略管理Edge浏览器设置(IE模式、主页绑定等)
- MQ component (2022.5.16-5.22)
猜你喜欢
随机推荐
DELL R720服务器安装网卡Broadcom 5720驱动
台湾SSS鑫创SSS1700替代Cmedia CM6533 24bit 96KHZ USB音频编解码芯片
MQ优缺点(2022.5.2-5.8)
科大讯飞活跃竞赛汇总!(12个)
软件工程最佳实践——项目需求分析
Small notes - integer improvement (C language)
2022年高考都结束了,还有人真觉得程序员下班后不需要学习吗?
MySQL数据库查询优化
The former king of fruit juice sold for 1.6 billion yuan
图扑软件通过 CMMI5 级认证!| 国际软件领域高权威高等级认证
There are three ways to create instances by reflection (2022.6.6-6.12)
The prospectus of pelt medical was "invalid" for the second time in the Hong Kong stock exchange, and the listing plan was substantially delayed
2022 最新 JCR正式发布全球最新影响因子名单(前600名)
ROS advertisement data publishing tips - latch configuration
线上线下双结合,VR全景是家具线上转型好方法!
Task04: set operation - addition and subtraction of tables, join, etc. - learning notes of Tianchi Longzhu project SQL training camp
MySQL billing Statistics (Part 1): MySQL installation and client dbeaver connection
笔记软件的历史、选择策略以及深度评测
Simple usage of LinkedList (2022.6.13-6.19)
标配10个安全气囊,奇瑞艾瑞泽8安全防护无死角







![[multithreading] use the thread pool to implement a simple thread pool](/img/24/ad3ced1d4aebde3f2233b04752bead.png)

