Now Function

ត្រឡប់​កាល​បរិច្ឆេទ និង​ពេល​វេលា​របស់​ប្រព័ន្ធ​បច្ចុប្បន្ន​ជា​តម្លៃ កាល​បរិច្ឆេទ ។

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