当前位置:首页 >> 网络编程

Convert Seconds To Hours

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