Now

Get the current data and time.

Returns a Date object representing the current date and time. Note, the current date and time is taken from that of the executing deployment engine, not of the Endpoint running the web interface.

Usage

now()

Returns

Date Object

Example

set d = now();

echo “The time now is $d”;

echo “Epoch is ${d.to_int()}”;

Result:

The time now is Wednesday, April 06, 2016 15:41:50

Epoch is 1459953710

See Also

date()