]> git.neil.brown.name Git - plato.git/commit
ical.py: revise BYWEEKNO behaviour.
authorNeilBrown <neilb@suse.de>
Mon, 30 Dec 2013 22:58:57 +0000 (09:58 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 30 Dec 2013 22:58:57 +0000 (09:58 +1100)
commita0c3efd5ba746c299e1be628f234f35054322fbc
tree1ca054633a3c87c82cade4a2bef17ea8b1c9c946
parent3ebdcccffa218616abb5c6e70c11fee5cd94787c
ical.py: revise BYWEEKNO behaviour.

BYWEEKNO used to expand to every day in that week.
This doesn't really match the RFC as that say that BYDAY should 'expand'
with BYWEEKNO, but I would need it to 'limit'.

So what should we do?  Choose one day from that week, but which?
 - first day of the week
 - same day of the week as DTSTART
 - same day of the week as the date matching DTSTART in this year?

None are really ideal, and hopefully it would always be used with BYDAY.
As the last is easy I do that.
lib/ical.py