VBScriptTimeSerial関数_
❮完全なVBScriptリファレンス
TimeSerial関数は、特定の時間、分、および秒の時間を返します。
構文
TimeSerial(hour,minute,second)
Parameter | Description |
---|---|
hour | Required. A number between 0 and 23, or a numeric expression |
minute | Required. Any numeric expression |
second | Required. Any numeric expression |
例
例
<%
response.write(TimeSerial(23,2,3) & "<br />")
response.write(TimeSerial(0,9,11) & "<br />")
response.write(TimeSerial(14+2,9-2,1-1))
%>
上記のコードの出力は次のようになります。
11:02:03 PM
12:09:11 AM
4:07:00 PM
❮完全なVBScriptリファレンス