Template:Key:opening hours/specification table
Specification version 0.7.3. The specification versioning complies with Semantic Versioning. Increase the version accordingly when updating the specification.
Note that the English version of the specification is considered the official documentation. Translations of the specification might not be up-to-date or in compliance with the latest version yet.
time_domain | ||
---|---|---|
Symbol | Definition | Comment |
<time_domain> | <rule_sequence> { <any_rule_separator> <rule_sequence> }
|
Explanation |
<rule_sequence> | Limitations and Explanation | |
Rule separators | ||
<any_rule_separator> | <normal_rule_separator> | <additional_rule_separator> | <fallback_rule_separator>
|
|
<normal_rule_separator> | ; <space>
|
|
<additional_rule_separator> | , <space>
|
Limitations and Explanation |
<fallback_rule_separator> | Explanation | |
Rule modifiers | ||
<rule_modifier> | → open (Explanation) | |
open [ <space> <comment> ]
|
→ open | |
closed | off [ <space> <comment> ]
|
→ closed (Explanation) | |
unknown [ <space> <comment> ]
|
→ unknown | |
<comment>
| ||
Selectors | ||
<selector_sequence> | 24/7 | Explanation |
<wide_range_selectors> <small_range_selectors>
| ||
<wide_range_selectors> |
[ |
|
<comment> :
|
Explanation | |
<small_range_selectors> |
[ |
|
<separator_for_readability> | : | Explanation |
Time selector | ||
<time_selector> | <timespan> { , <timespan> }
|
|
<timespan> | ||
<time>
|
Limitations and Explanation | |
<time> +
|
Explanation | |
<time> - <extended_time> +
| ||
<time> - <extended_time>
| ||
<time> - <extended_time> / <positive_number>
|
Limitations and Explanation | |
<time> - <extended_time> / <hour_minutes>
| ||
<time> | <hour_minutes> | <variable_time>
| |
<extended_time> | ||
<variable_time> | <event>
|
|
( <event> <plus_or_minus> <hour_minutes> )
|
||
<event> |
dawn | sunrise | sunset | dusk |
|
Weekday selector | ||
<weekday_selector> | <weekday_sequence>
|
Explanation |
<holiday_sequence>
| ||
<holiday_sequence> , <weekday_sequence>
| ||
<weekday_sequence> , <holiday_sequence>
| ||
<holiday_sequence> <space> <weekday_sequence>
| ||
<weekday_sequence> | <weekday_range> { , <weekday_range> }
| |
<weekday_range> | <wday>
|
|
<wday> - <wday>
|
||
<wday> [ <nth_entry> { , <nth_entry> } ]
|
Explanation | |
<wday> [ <nth_entry> { , <nth_entry> } ] <day_offset>
|
||
<holiday_sequence> | <holiday> { , <holiday> }
| |
<holiday> | <public_holiday> [ <day_offset> ]
|
Limitations and Explanation |
<school_holiday>
|
||
<public_holiday> | PH | |
<school_holiday> | SH | Explanation |
<nth_entry> | <nth>
|
|
<nth> - <nth>
|
||
- <nth>
|
||
<nth> | 1 | 2 | 3 | 4 | 5 | |
<day_offset> | <space> <plus_or_minus> <positive_number> <space> day[s]
|
|
Week selector | ||
<week_selector> | week <week> { , <week> }
|
|
<week> | <weeknum>
|
|
<weeknum> - <weeknum>
|
||
<weeknum> - <weeknum> / <positive_number>
|
Explanation | |
Month selector | ||
<monthday_selector> | <monthday_range> { , <monthday_range> }
|
|
<monthday_range> | [ <year> ] <month>
|
|
[ <year> ] <month> - <month>
|
||
<date_from> [ <date_offset> ]
|
Explanation | |
<date_from> [ <date_offset> ] +
|
Explanation | |
<date_from> [ <date_offset> ] - <date_to> [ <date_offset> ]
|
Explanation | |
<date_offset> | [ <plus_or_minus> <wday> ] [ <day_offset> ]
|
Explanation |
<date_from> | [ <year> ] <month> <daynum>
|
|
[ <year> ] <variable_date>
|
||
<date_to> | <date_from>
|
|
<daynum>
|
Explanation | |
<variable_date> | easter | Explanation |
Year selector | ||
<year_selector> | <year_range> { , <year_range> }
|
|
<year_range> | <year>
|
|
<year> - <year>
|
||
<year> - <year> / <positive_number>
|
||
<year> +
|
||
Basic elements | ||
<plus_or_minus> |
+ | - | |
<hour> |
00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
|
<extended_hour> |
|
|
<minute> |
00 | 01 | 02 | 03 | 04 | 05 |
06 | 07 | 08 | 09 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | |
|
<hour_minutes> | <hour> :<minute>
|
|
<extended_hour_minutes> | <extended_hour> :<minute>
|
Explanation |
<wday> |
Su | Mo | Tu | We | Th | Fr | Sa |
|
<daynum> |
01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
|
<weeknum> |
01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | |
Explanation |
<month> |
Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|
<year> | Four digit number greater than 1900. | |
<positive_number> | Integer greater than zero (not zero padded). | |
<comment> | " <comment_character> { <comment_character> } "
|
Explanation |
<comment_character> | Any character except ". | |
<space> | " " |
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.