Vbscript-timer-function

提供:Dev Guides
移動先:案内検索

VBScriptタイマー関数

タイマー関数は、午前12:00以降の秒数とミリ秒数を返します。

構文

Timer()

<!DOCTYPE html>
<html>
   <body>
      <script language = "vbscript" type = "text/vbscript">
         document.write("Time is : " & Now() & "<br/>")
         document.write("Timer is: " & Timer())

       </script>
   </body>
</html>

lとして保存してInternet Explorerで実行すると、上記のスクリプトは次の結果を生成します-

Time is : 19/07/2013 3:45:53 PM
Timer is: 56753.4