TimeSerial

Construct a Time value from Hours, Minutes and seconds.

Syntax 
      TimeSerial(Hour, Minute ,Second)

Key
   Hour     A numeric hour (0-23)

   Minute   A numeric minute (0-59)

   Second   A numeric second (0-59)

Examples

result = TimeSerial(14,30,07)
WScript.Echo result
> 14:30:07

“Time is more valuable than money. You can get more money, but you cannot get more time” ~ Jim Rohn

Related VBScript commands

Replace - Find and replace text.
Equivalent PowerShell cmdlet: $result = get-date -h 17 -mi 10 -s 45 -displayhint time


 
Copyright © 1999-2024 SS64.com
Some rights reserved