Home > Web Front-end > JS Tutorial > Convert Seconds To Hours_Time and Date

Convert Seconds To Hours_Time and Date

WBOY
Release: 2016-05-16 19:12:24
Original
1326 people have browsed it

Converts time in seconds to hours, minutes, and seconds

Copy code The code is as follows:

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
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template