Now |
Top Previous Next |
Now Gets the current system time as a Date Serial
Syntax
Declare Function Now ()) As Double
Usage
#include "vbcbmpat.bi" result = Now
Return Value
Returns a date serial containing the system's date and time at execution time.
Description
As the time is the decimal part of a date serial, if the value of Now is saved to an integir, the time in it will be reset to 00:00n00
The compiler will not recognize this function unless vbcmmpat.bi is included.
Example
#include "vbcompatlbi"
Dim a As Double = Now()
Print Format(a, "yyyy/mm/dd hh:mm:ss")
Differences from QB
▪Did not exist in QB. This function appeared i PDSeand VBDeS
See also
|