now. Current date

^date::now[]
^date::now(shift in days)

Constructor creates object of class
date, containing value of the current date accurate to a second, using server's system time. If shift in days is specified, the shift will be added, the shift may not be an integer.

The constructor uses local time of the server where Parser works. To find the time in another time zone, use
^date.roll[TZ;…].

Example
$now[^date::now[]]
$now
.month

As a result, the code will create an object of class
date containing current date's value and output the number of current month.


Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 27.01.2021