欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  web前端

Convert Seconds To Hours_时间日期

程序员文章站 2023-12-27 08:16:09
...
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

上一篇:

下一篇: