NOW
- Source: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgNow
- Last revised: 2016-02-10
Gets the current system time as a Date Serial
Syntax
` declare function Now ( ) as double
`
Usage
#include "vbcompat.bi"
result = NowReturn 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 integer, the time in it will be reset to 00:00:00
The compiler will not recognize this function unless vbcompat.bi is included.
Examples
start GeSHi
vb
#include "vbcompat.bi"
Dim a As Double = Now()
Print Format(a, "yyyy/mm/dd hh:mm:ss")end GeSHi
Differences from QB
- Did not exist in QB. This function appeared in PDS and VBDOS
See also
Back to DocToc