Minute Function返回一个介于0到59之间的数字,代表指定时间戳记的小时Minute。
语法
Minute(time)
例
<!DOCTYPE html> <html> <body> <script language = "vbscript" type = "text/vbscript"> document.write("Line 1: " & Minute("3:13:45 PM") & "<br />") document.write("Line 2: " & Minute("23:43:45") & "<br />") document.write("Line 3: " & Minute("2:20 PM") & "<br />") </script> </body> </html>
将其另存为.html并在Internet Explorer中执行时,上述脚本将产生以下结果:
Line 1: 13 Line 2: 43 Line 3: 20
作者:terry,如若转载,请注明出处:https://www.web176.com/vbscript/1169.html