目录

# Now Function

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

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

### 语法:

    Now

### Return type:

日期

### 错误代码:

5 无效的过程调用

### 示例:

      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

请支持我们!