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()
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified August 31, 2024: Signed-off-by: tracyragan <[email protected]> (20379ca)