datetimeformat (Domino DTD)
Represents the localization formats of datetime.
Containment Hierarchy
Syntax
<!ELEMENT datetimeformat EMPTY>
Attributes
<!ATTLIST datetimeformat
show |
(%datetimeformat.show;) |
#IMPLIED |
---|---|---|
date |
(%datetimeformat.date;) |
#IMPLIED |
showtodaywhenappropriate |
%boolean; |
"false" |
fourdigityear |
%boolean; |
"false" |
fourdigityearfor21stcentury |
%boolean; |
"false" |
omitthisyear |
%boolean; |
"false" |
time |
(%datetimeformat.time;) |
#IMPLIED |
zone |
(%datetimeformat.zone;) |
#IMPLIED |
calendar |
(%datetimeformat.calendar;) |
#IMPLIED |
>
date
Displays the date in the format defined in the Defined entities for <datetimeformat> element entity.
fourdigityear
Always displays the year using four digits.
fourdigityearfor21stcentury
Displays the year using four digits only for dates having the year 2000 and later.
omitthisyear
If true, omits the year from the date and time display formats. Default is false.
show
Displays the date and time in the format defined in the %datetimeformat.show; entity.
showtodaywhenappropriate
Boolean. If true, displays 'today' instead of the date when date equals the current date.
time
Displays the time in the format defined in the %datetimeformat.time; entity.
zone
Displays the time zone in the format defined in the %datetimeformat.zone; entity.
Defined entities for <datetimeformat> element
The %datetimeformat.calendar; entity defines different types of calendars.
Syntax:
<!ENTITY % datetimeformat.calendar "gregorian | hijri">
The following calendar types are available:
gregorian
Christian calendar which is a revised version of the Julian calendar that incorporated leap years to keep sync with the lunar cycle.
hijri
Islamic calendar based on twelve lunar months.
The %datetimeformat.date; entity defines the options for date format.
Syntax:
<!ENTITY % datetimeformat.date "yearmonthday | year4monthday | monthday | yearmonth | year4month | weekdaymonthdayyear | weekdaymonthday | weekday | month | day | year">
These format options display the current date as follows:
day
Day only.
month
Month only.
monthday
Month-day.
weekdaymonthdayyear
Weekday, month, day and year.
weekdaymonthday
Weekday, month, and day.
weekday
Weekday only.
year
Year only.
year4month
Year-month, where the year is in 4 digits.
year4monthday
Year-month-day, where the year is in 4 digits.
yearmonth
Year-month, where the year is in 2 digits.
yearmonthday
Year-month-day, where the year is in 2 digits.
The %datetimeformat.show; entity defines options for displaying the date and/or time.
Syntax:
<!ENTITY % datetimeformat.show "date | time | datetime">
These format options display the:
date
Current date only.
datetime
Current date and time.
time
Current time only.
The %datetimeformat.time; entity defines the options for time format.
Syntax:
<!ENTITY % datetimeformat.time "hourminutesecondhundredths | hourminutesecond | hourminute | hour">
The %datetimeformat.zone; entity defines the frequency options for time zone display.
Syntax:
<!ENTITY % datetimeformat.zone "never | sometimes | always">