目录

# Now Function

以「日期」值的形式返回当前的系统日期与时间。

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

### 语法:

    Now

### 返回值:

日期

### 示例:

      Sub ExampleNow
          MsgBox "现在是 " & 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