Now Function

A jelenlegi dátumot és időt Date (dátum) értékként adja vissza.

note

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


Szintaxis:

Now

Return type:

Dátum

Hibakódok:

5 Érvénytelen eljáráshívás

Példa:

Sub ExampleNow
    MsgBox "A mai dátum:" & 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

Támogasson minket!