Enable JavaScript in the browser to display LibreOfficeDev Help pages.

Now Function

현재 시스템 날짜와 시간을 Date 값으로 구합니다.

note

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


Syntax:


Now

Return value:

날짜

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