当前位置: 移动技术网 > IT编程>开发语言>JavaScript > Convert Seconds To Hours

Convert Seconds To Hours

2019年08月01日  | 移动技术网IT编程  | 我要评论
converts time in seconds to hours, minutes, and seconds
复制代码 代码如下:

inttotalsecs = 15438
inthours = inttotalsecs \ 3600
intminutes = (inttotalsecs mod 3600) \ 60
intseconds = inttotalsecs mod 60
wscript.echo "hours: " & inthours
wscript.echo "minutes: " & intminutes
wscript.echo "seconds: " & intseconds

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网