]> git.ipfire.org Git - thirdparty/util-linux.git/commit
cal: correct gregorian week numbering
authorSami Kerola <kerolasa@iki.fi>
Thu, 27 Aug 2015 13:21:26 +0000 (14:21 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 31 Aug 2015 08:15:09 +0000 (10:15 +0200)
commitefafeaf684a1d7cd7d65b205470d5438014be7cd
treeb1608f3153234b8e7102cf9216ce6746501ca1c7
parent32c9ce4bafa76003f732b6e60e794c15a1942ca8
cal: correct gregorian week numbering

Jan 1 is always First week, and year always has 53 weeks.  The week 53
may be cut short, e.g., it may and often has fewer than 7 days.  Every
year 28 year intervals US week numbering continues all the way to 54th
week, such as 1972, 2000, and 2028.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1249486
Reported-by: Michal Toth
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/cal.c