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