On 8/2/20 7:26 AM, o1bigtenor wrote: > The differences become very relevant for formatting. A month that has > 4 weeks takes a different amount of vertical space than a month that > has 6 weeks.
The only month that has only 4 weeks would be Febuary, on non-lead years, that starts on Sunday (or whatever you consider the first day of your week). Yes, the 5 to 6 variation can cause formatting problems, especially since the 6 week months are rare enough (only 30 days months beginning on the last day of the week, or 31 day months beginning on the last 2 days, so around 1 in 5 or so) that you may want to trim them out when possible. I would likely just build the formatter to start by assuming 6 week months, and then near the end, after stacking the side by side months, see if it can be trimmed out (easier to remove at the end then add if needed) -- Richard Damon -- https://mail.python.org/mailman/listinfo/python-list
