By the same concern, you will still break the already complicated opening_hours=
syntax that may yet not be fully supported by everyone. Users will have to check the syntax, or editing software have to support it widely, when most aren’t even GUI. And let’s not talk about non-Gregorian calendars, and festivals based on them…
Do you mean last two preceding, or next two subsequently? Use =Dec Su[-1,-2,-3] 10:00-18:00 "if before Xmas"
first. (unfortunately this is already unsupported in implementation as the tool shows “can not use more than one constrained weekday in a month range”)
Maybe it can be patched in by combining and expanding the syntax eg opening_hours:conditional=Su 10:00-18:00 @ date + 14 days <= Dec 25
Or f it is as easy as adding a <shopping_sunday>
with SS
to <holiday>
with the program, it is more doable. However, PH
is not even defined for many countries yet. GitHub - opening-hours/opening_hours.js: Library to parse and process the opening_hours tag from OpenStreetMap data
Actually there is a getMovableEventsForYear
in opening_hours.js/index.js at master · opening-hours/opening_hours.js · GitHub with a 'variable_date': nextWednesday16Nov
example in opening_hours.js/README.md at master · opening-hours/opening_hours.js · GitHub that might be reusable. So why don’t you ask this on Github? That’s where the syntax is anyway.
1 Like