create. Arbitrary date

^date::create(year;month)
^date::create(year;month;day)
^date::create(year;month;day;hour;minute;second)
^date::create(year;month;day;hour;minute;second)[TZ]   [3.4.5]

The constructor creates an object of class
date containing value of an arbitrary date accurate to a second. Year and month are obligatory parameters, while day, hour, minute, second and TZ are optional parameters. If these are not specified, the day value will be set to 1, while hours, minutes, and seconds-to 0 and TZ to current time zone.

Example
$year_2000_start[^date::create(2001;12;31;23;55)]

As a result, the code will create an object of class date, whose fields' values will contain time for year 2000 to begin.


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