Now

Top  Previous  Next

Prototype

 

Now

 

Description

 

Returns the current date and time.

 

Parameters

 

None.

 

Returned value

 

FloatCurrentDateTime: real number corresponding to the date (integer part) and to the hour (fractional part) .

 

Notes

 

None.

 

Example

 

// Store date and hour

DateHour:=Now;

 

// Convert date and hour into a string

DateHourStr:=FormatDateTime('DD/MM/YYYY HH:NN:SS',DateHour);

 

// Log a message with the date and hour

ApplicationLog('Date and hour:' + DateHourStr);