]> git.ipfire.org Git - thirdparty/util-linux.git/commit
cal: simplify day_in_week() calculation
authorSami Kerola <kerolasa@iki.fi>
Mon, 29 Apr 2013 21:30:51 +0000 (22:30 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sun, 26 May 2013 08:59:20 +0000 (09:59 +0100)
commitd68f076f1c362847a5e96abbfe3f51b23e7b72e6
treeb77d0b07ea1a8cb2d90f3a75b4bf4931a59b53e2
parent8ea0caa2fb09db4dcf584565dd882955c92297c0
cal: simplify day_in_week() calculation

The day_in_week() can be made easier to read, and should return invalid
weekday at the time of missing 11 days at September 1752.

Reported-by: Thomas Bächler <thomas@archlinux.org>
References: http://www.spinics.net/lists/util-linux-ng/msg07910.html
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/cal.c