boudicca-events / boudicca.events

Event Aggregation/Publishing System
https://boudicca.events
GNU General Public License v3.0
29 stars 8 forks source link

[Discussion] parsing of complex Date/Time queries #278

Open twatzl opened 7 months ago

twatzl commented 7 months ago

Especially in the field of museum railways the event days might get rather complex.

There are

In the end we want a list of dates where the Location is open for the public.

Example: (from: https://www.nostalgiebahn.at/historama.html)

Öffnungstage
"Andampfen" - mit Kärnten Card
mit erweitertem Rahmenprogramm
Täglich vom 30.05. bis 02.06.2024

Über das Programm zum "Andampfen" [mehr erfahren ▸](https://www.nostalgiebahn.at/files/nostalgiebahn/pdf/plakate/programm_andampfen.pdf)

Vorsaison - mit Kärnten Card
Freitag und Samstag von 07.06. bis 29.06.2024

Hauptsaison - mit Kärnten Card
Dienstag bis Sonntag von 02.07. bis 08.09.2024
Ebenfalls geöffnet am Donnerstag, 15.08.2024 (Feiertag - Maria Himmelfahrt)
[▸ Oldtimerfest "Nostalgie Total"](https://www.nostalgiebahn.at/nostalgie-total.html) mit Sonderprogramm am Samstag, 31. August 2024

Nachsaison - mit Kärnten Card
Freitag und Samstag von 13.09. bis 19.10.2024

Herbstferien - mit Kärnten Card
mit erweitertem Rahmenprogramm
Täglich von 25.10. bis 31.10.2024

Über das Programm der "Herbstferien" [mehr erfahren ▸](https://www.nostalgiebahn.at/files/nostalgiebahn/pdf/plakate/programm_herbstferien.pdf)

There are multiple approaches to it:

What are your opinions on this topic?

kadhonn commented 7 months ago

yeah i thought about that already as well it would be nice to have some sort of generic date parsee where you just shove your text in and get all dates back... but i don't really know how to do it best we probably just have to try both ways?