makedate
Summary
Generates the UNIX timestamp of a given date.Usage
makedate( [month [, day [, year [, dst ] ] ] ] )
Parameters
Name | Type | Description | Required |
---|---|---|---|
month | integer | The month of the year. | No. |
day | integer | The day of the month. | No. |
year | integer | The year. | No. |
dst | integer | Daylight savings (on/off). | No. |
Returns
A UNIX timestamp (an integer).Description
This operator returns the UNIX timestamp corresponding to the provided parameters. The parameters may be left out in order from right to left. Parameters that are omitted will be set to the current value according to the local date and time. The "dst" parameter can be set to 1 if the time is during daylight savings time (DST), 0 if it is not, or -1 (the default) if it is unknown whether the time is within daylight savings time or not (the system will try to figure it out). If no parameters are given, the operator will return the timestamp for the current day.
Examples
Example 1
{makedate( 1, 2, 2005 )}
The following output will be produced: "1104620400" - which is the UNIX timestamp for "00:00:00, 2nd of January, 2005".
Balazs Halasy (21/03/2005 9:33 am)
Julia Shymova (30/04/2007 11:14 am)
Comments
There are no comments.