Matheus Vieira Portela added the comment: Agreed that we should attain to ISO 8601, as it solves two questions that occurred in this thread:
- According to the specification, it is clear that a week must start on Monday and end on Sunday. Hence datetime.strptime('201726', '%Y%U') could be safely assigned to 2017/06/26 without ambiguity - It also makes clear on what to do when a week overlaps two years. IMHO there is no reason to not implement this feature and remove the requirement of using %U with the year and day of the week. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30802> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com