תוכן
\<bookmark_value\>Now function\</bookmark_value\>

# Now Function

Returns the current system date and time as a \<emph\>Date\</emph\> value.

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

### Syntax:

    Now

### Return type:

Date

### Error codes:

5 Invalid procedure call

### 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