Contents

# Now Function

以日期型數值的形式傳回目前的系統日期和時間。

The Now function calculates time up to milliseconds, but return time in seconds.

### Syntax:

    Now

### Return type:

日期

### 錯誤代碼：

5 無效的程序呼叫

### Example:

      Sub ExampleNow
          msgbox "It is now " & Now
      End Sub
      REM Work with milliseconds timings
      Sub ExampleNowDouble
          Dim myTime As Double
          myTime = now
          MsgBox "It is now " & format(myTime, "yyyy-mm-dd HH:MM:SS.000")
      End Sub

相關主題

ScriptForge.Timer service

Please support us!