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 date will be shifted a specified number of days.

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

Example
$date_now[^date::now[]]
$date_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–2010 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 20.09.2007