Chức năng VBScript TimeSerial
❮ Toàn bộ tài liệu tham khảo VBScript
Hàm TimeSerial trả về thời gian cho một giờ, phút và giây cụ thể.
Cú pháp
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 |
Thí dụ
Thí dụ
<%
response.write(TimeSerial(23,2,3) & "<br />")
response.write(TimeSerial(0,9,11) & "<br />")
response.write(TimeSerial(14+2,9-2,1-1))
%>
Đầu ra của đoạn mã trên sẽ là:
11:02:03 PM
12:09:11 AM
4:07:00 PM
❮ Toàn bộ tài liệu tham khảo VBScript