This version is out of date, covering development from v4.6.0 to v4.7.1. It is maintained here only for inbound reference links from elsewhere.
Jump to the current version of aTbRef.
|A Tinderbox Reference File : Actions & Rules : Operators : Action Operator Types : Date-time operators : date(year,month,day,hour,min)||aTbRef Site Map|
|Operator Scope of Action:||Item|
constructs a date from individual numeric elements. This is useful, for example, if you need to assemble a date from separate attributes.
year is the 4-digit year
month is a number from 1-12
day is a number from 1 to 31
The time arguments are optional, and are specified in a 24-hour clock.
hour is a number from 0 to 23
minute is a number from 0 to 59
Using this operator, do not quote the whole arguments set - these should be left as individual numbers.
$MyDate = date("2004,7,23,16,45");
$MyDate = date(2004,7,23,16,45);
|Up: Date-time operators|
|Previous: date(string)||Next: month(theDate)|
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]