Convert Seconds To Hours
人气:0
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
加载全部内容