Now
Previous  Top  Next

Prototype

Now

Description

It returns the current date and time.

Parameters

None.

Returned value

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

Notes

None.

Example

//It stores date and hour
DateHour:=Now;

//It converts date and hour into string 
DateHourStr:=FormatDateTime('DD/MM/YYYY HH:NN:SS',DateHour);

//It shows a message conveying date and hour
ApplicationLog(_CurrentAgent,'Date and hour:' + DateHourStr);