当前位置:网站首页>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
边栏推荐
- [jetsonnano] [tutorial] [introductory series] [i] how to enable VNC sharing
- 《微信小程序-基础篇》带你了解小程序中的生命周期(二)
- 企业中台规划和IT架构微服务转型
- Advanced skills of testers: a guide to the application of unit test reports
- await和async
- discuz 论坛提速之删除data/log下的xxx.php文件
- SQL continuous login problem
- 项目配置了eslint,编辑器没有关闭eslint功能的情况下,eslint没有生效
- Promise from recognition to use
- Promise从认识到使用
猜你喜欢

Character class of regular series

Promise从认识到使用

闲鱼难“翻身”

ABAQUS 2022最新版——完善的现实仿真解决方案

SSM整合流程(整合配置、功能模块开发、接口测试)

History, selection strategy and in-depth evaluation of note taking software

Audio and video architecture construction in the super video era | science and Intel jointly launched the second season of "architect growth plan"

Wechat applets - basics takes you to understand the life cycle of applets (2)

线下门店为什么要做新零售?

2022年高考都结束了,还有人真觉得程序员下班后不需要学习吗?
随机推荐
线上线下双结合,VR全景是家具线上转型好方法!
The prospectus of pelt medical was "invalid" for the second time in the Hong Kong stock exchange, and the listing plan was substantially delayed
Task04: set operation - addition and subtraction of tables, join, etc. - learning notes of Tianchi Longzhu project SQL training camp
4.3寸触控屏12路控制端口可编程网络中控支持5台中控主机相互备份
假期安全不放假,VR交通让孩子安全出行|广州华锐视点
A detailed explanation of the implementation principle of go Distributed Link Tracking
Await and async
VR云展厅如何给线下实体带来活力?有哪些功能?
1. 爬虫之Beautifulsoup解析库&在线解析图片验证码
pycharm有用快捷键
Code shoe set - mt3435 · assignment - bipartite graph problem - Graphic explanation
matlab 将三角剖分结果保存为STL文件
composer
Buttons to achieve various effects and functions. Reading this article is enough
标配10个安全气囊,奇瑞艾瑞泽8安全防护无死角
c语言数组截取,C# 字符串按数组截取方法(C/S)
码蹄集 - MT3435 · 赋值 - 二分图问题 - 图文讲解
Audio and video architecture construction in the super video era | science and Intel jointly launched the second season of "architect growth plan"
8 - 函数
小学期,第三场-下午:WEB_xxe