Funktion Now

Gibt das aktuelle Systemdatum und die aktuelle Systemzeit als einen Wert vom Datentyp Date zurück.

note

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


Syntax:


Now

Rückgabewert:

Datum

Beispiel:


  Sub ExampleNow
      MsgBox "Es ist jetzt " & 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