Convert Seconds To Hours
程序员文章站
2023-11-13 12:48:46
converts time in seconds to hours, minutes, and&nbs...
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
复制代码 代码如下:
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
上一篇: Android自定义控件实现UC浏览器语音搜索效果
下一篇: 一个不错的动感导航菜单
推荐阅读
-
Convert Seconds To Hours
-
zabbix wait for 15s seconds 出现原因及调优建议
-
PHP mb_convert_encoding 获取字符串编码类型实现代码
-
在SQL中使用convert函数进行日期的查询的代码
-
python编程开发之类型转换convert实例分析
-
MySQL数据库中CAST与CONVERT函数实现类型转换的讲解
-
PHP下编码转换函数mb_convert_encoding与iconv的使用说明
-
php 转换字符串编码 iconv与mb_convert_encoding的区别说明
-
PHP mb_convert_encoding文字编码的转换函数介绍
-
mysql中cast()和convert()的用法讲解