<datetime> create a date/time object

name
datetime
xml namespace
http://moyaproject.com

Create a Moya datetime object.

Datetime objects have the following properties:

year
The year (integer)
month
The month (integer) (1 is January)
day
The day (integer)
hour
The hours in the time
minute
The number of minutes in the time
second
The number of seconds in the time
microseconds
The number of microseconds in the time
isoformat
The date/time in ISO 8601 format
next_day
The date/time + 24 hours
previous_day
The date/time - 24 hours
year_start
January 1st at the beginning of the year
day_start
The beginning of the day (midnight)
next_year
January 1st of the next year
next_month
First day of the next month
next_day
The start of the next day
previous_day
The start of the previous day
previous_year
Jan 1st of the previous year
previous_monthy
First date of the previous month
days_in_month
Number of days in the current month
epoch
Number of seconds since Jan 1st 1970
html5_datatime
Date/Time in HTML5 format
html5_data
Date in HTML5 format
html_time
Time in HTML5 format
utc
Date/Time in UTC timezone
local
DateTime in local timezone (references .tz)

Example

<datetime year="1974" month="7" day="5" dst="birthday" />
<echo>Your birthday is ${localize:birthday}</echo>
attributes
name purpose type required? default choices
day Month integer No 1
hour Hour integer No 0
minute Minute integer No 0
month Month integer No 1
second Second integer No 0
year Year integer Yes
inherited attributes
name purpose type required? default choices
dst Destination reference No
if Conditional expression expression No yes
value Value expression No None