Compare commits

..

2 commits

Author SHA1 Message Date
Rolf Amfelt 993d09bea0 Add dates for the rest of 2024 2024-04-14 16:29:51 +02:00
Rolf Amfelt ef1e916b8a Calculate dates for at year 2024-04-14 16:29:36 +02:00
2 changed files with 77 additions and 10 deletions

View file

@ -17,14 +17,14 @@
# time: "13:00-17:00"
# current: true
- danish_title: "Søndag d. 31. marts 2024"
danish_text: "Fra kl. 13 til 17 er der igen #cryptohagen på Café Mellemrummet. Kom ned og sig hej, drik en kop lækker kaffe, og få en sludder."
danish_text_extra: ""
english_title: "Sunday March 31th 2024"
english_text: "#Cryptohagen at Café Mellemrummet is on again. From 1 PM to 5 PM. Come by for a chat and get yourself a nice cup of coffee"
english_text_extra: ""
time: "13:00-17:00"
current: true
# - danish_title: "Søndag d. 31. marts 2024"
# danish_text: "Fra kl. 13 til 17 er der igen #cryptohagen på Café Mellemrummet. Kom ned og sig hej, drik en kop lækker kaffe, og få en sludder."
# danish_text_extra: ""
# english_title: "Sunday March 31th 2024"
# english_text: "#Cryptohagen at Café Mellemrummet is on again. From 1 PM to 5 PM. Come by for a chat and get yourself a nice cup of coffee"
# english_text_extra: ""
# time: "13:00-17:00"
# current: true
- danish_title: "Søndag d. 28. april 2024"
danish_text: "Fra kl. 13 til 17 er der igen #cryptohagen på Café Mellemrummet. Kom ned og sig hej, drik en kop lækker kaffe, og få en sludder."
@ -33,7 +33,7 @@
english_text: "#Cryptohagen at Café Mellemrummet is on again. From 1 PM to 5 PM. Come by for a chat and get yourself a nice cup of coffee"
english_text_extra: ""
time: "13:00-17:00"
current: false
current: true
- danish_title: "Søndag d. 26. maj 2024"
danish_text: "Fra kl. 13 til 17 er der igen #cryptohagen på Café Mellemrummet. Kom ned og sig hej, drik en kop lækker kaffe, og få en sludder."
@ -51,4 +51,58 @@
english_text: "#Cryptohagen at Café Mellemrummet is on again. From 1 PM to 5 PM. Come by for a chat and get yourself a nice cup of coffee"
english_text_extra: ""
time: "13:00-17:00"
current: false
current: false
- danish_title: "Søndag d. 28. juli 2024"
danish_text: "Fra kl. 13 til 17 er der igen #cryptohagen på Café Mellemrummet. Kom ned og sig hej, drik en kop lækker kaffe, og få en sludder."
danish_text_extra: ""
english_title: "Sunday July 28th 2024"
english_text: "#Cryptohagen at Café Mellemrummet is on again. From 1 PM to 5 PM. Come by for a chat and get yourself a nice cup of coffee"
english_text_extra: ""
time: "13:00-17:00"
current: false
- danish_title: "Søndag d. 25. august 2024"
danish_text: "Fra kl. 13 til 17 er der igen #cryptohagen på Café Mellemrummet. Kom ned og sig hej, drik en kop lækker kaffe, og få en sludder."
danish_text_extra: ""
english_title: "Sunday August 25th 2024"
english_text: "#Cryptohagen at Café Mellemrummet is on again. From 1 PM to 5 PM. Come by for a chat and get yourself a nice cup of coffee"
english_text_extra: ""
time: "13:00-17:00"
current: false
- danish_title: "Søndag d. 29. september 2024"
danish_text: "Fra kl. 13 til 17 er der igen #cryptohagen på Café Mellemrummet. Kom ned og sig hej, drik en kop lækker kaffe, og få en sludder."
danish_text_extra: ""
english_title: "Sunday September 29th 2024"
english_text: "#Cryptohagen at Café Mellemrummet is on again. From 1 PM to 5 PM. Come by for a chat and get yourself a nice cup of coffee"
english_text_extra: ""
time: "13:00-17:00"
current: false
- danish_title: "Søndag d. 27. oktober 2024"
danish_text: "Fra kl. 13 til 17 er der igen #cryptohagen på Café Mellemrummet. Kom ned og sig hej, drik en kop lækker kaffe, og få en sludder."
danish_text_extra: ""
english_title: "Sunday October 27th 2024"
english_text: "#Cryptohagen at Café Mellemrummet is on again. From 1 PM to 5 PM. Come by for a chat and get yourself a nice cup of coffee"
english_text_extra: ""
time: "13:00-17:00"
current: false
- danish_title: "Søndag d. 24. november 2024"
danish_text: "Fra kl. 13 til 17 er der igen #cryptohagen på Café Mellemrummet. Kom ned og sig hej, drik en kop lækker kaffe, og få en sludder."
danish_text_extra: ""
english_title: "Sunday November 24th 2024"
english_text: "#Cryptohagen at Café Mellemrummet is on again. From 1 PM to 5 PM. Come by for a chat and get yourself a nice cup of coffee"
english_text_extra: ""
time: "13:00-17:00"
current: false
- danish_title: "Søndag d. 29. december 2024"
danish_text: "Fra kl. 13 til 17 er der igen #cryptohagen på Café Mellemrummet. Kom ned og sig hej, drik en kop lækker kaffe, og få en sludder."
danish_text_extra: ""
english_title: "Sunday December 29th 2024"
english_text: "#Cryptohagen at Café Mellemrummet is on again. From 1 PM to 5 PM. Come by for a chat and get yourself a nice cup of coffee"
english_text_extra: ""
time: "13:00-17:00"
current: false

13
datoer.py Normal file
View file

@ -0,0 +1,13 @@
import sys
import calendar
year = 2024
if len(sys.argv) > 1:
try:
year = int(sys.argv[-1])
except ValueError:
pass
for month in range(1, 13):
last_sunday = max(week[-1] for week in calendar.monthcalendar(year, month))
print('{}-{}-{:2}'.format(year, calendar.month_abbr[month], last_sunday))