当前位置:网站首页>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
边栏推荐
- Safe holidays without holidays, VR traffic makes children travel safely | Guangzhou Sinovel viewpoint
- arthas调试 确定问题工具包
- Promise from recognition to use
- Simple usage of LinkedList (2022.6.13-6.19)
- 线下门店为什么要做新零售?
- VR全景添加对比功能,让差异化效果展示更直观!
- 在广州的朋友,有机会可以参加下
- pycharm从安装到全副武装,学起来才嗖嗖的快,图片超多,因为过度详细!
- ROS advertisement data publishing tips - latch configuration
- Promise从认识到使用
猜你喜欢

Gateway服务网关

VoIP Push 在海外音视频业务中的应用

为什么数字化转型战略必须包括持续测试?

MySQL billing Statistics (Part 1): MySQL installation and client dbeaver connection

【LeetCode】【SQL】刷题笔记

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

WordPress 博客使用火山引擎 veImageX 进行静态资源 CDN 加速(免费)

软件工程最佳实践——项目需求分析

Taiwan SSS Xinchuang sss1700 replaces cmedia cm6533 24bit 96KHz USB audio codec chip

“更福特、更中国”拨云见日,长安福特王牌产品订单过万
随机推荐
力扣------统计包含给定前缀的字符串
请指教在线开户是什么意思?究竟网上开户是否安全么?
matlab 将三角剖分结果保存为STL文件
在广州的朋友,有机会可以参加下
成长一夏 挑战赛来袭 专属社区福利来袭~免费获得CSDN定制T恤衫
永远不要使用Redis过期监听实现定时任务!
[jetsonnano] [tutorial] [introductory series] [i] how to enable VNC sharing
Promise from recognition to use
matlab Delaunay 三角剖分内的查询点
WordPress 博客使用火山引擎 veImageX 进行静态资源 CDN 加速(免费)
A necessary tool for testing -- postman practical tutorial
Why do more and more people choose cloud rendering?
1. 爬虫之Beautifulsoup解析库&在线解析图片验证码
盘点华为云GaussDB(for Redis)六大秒级能力
KubeVela 1.4:让应用交付更安全、上手更简单、过程更透明
条件编译
英语没学好到底能不能做coder,别再纠结了先学起来
台湾SSS鑫创SSS1700替代Cmedia CM6533 24bit 96KHZ USB音频编解码芯片
毕业季职场人
Tencent conference application market was officially launched, with more than 20 applications in the first batch