zim-wiki team mailing list archive
-
zim-wiki team
-
Mailing list archive
-
Message #01572
Getting dates into template
Hi,
I am trying to modify the Calendar.txt template when used in weekly mode to show
===== Mon 1 Jan =====
===== Tue 2 Jan ======
and so on. The calendar plugin only gives variables for the start and
end dates of the week, so how I can tell strftime to output the other
days? I tried with
strftime("%a %d %b", calendar_plugin.date + datetime.timedelta(days=1))
but did not work. I am probably doing something very wrong, as I have
never programmed in python before.
Any suggestions? Many thanks,
Iago
Follow ups