]> git.ipfire.org Git - thirdparty/util-linux.git/commit
cal: use %04d for year
authorKarel Zak <kzak@redhat.com>
Wed, 18 May 2016 12:43:20 +0000 (14:43 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 18 May 2016 12:43:20 +0000 (14:43 +0200)
commite671a62ef8574b16cd6acbfd04dc35c514b184e5
treee684b08d6a966da00a218d0dcb2ada5113e49335
parent747600537c67a25cc27a235a24980b234b6ac29e
cal: use %04d for year

It seems that people are crazy enough to assume that "cal 16" is the
year 2016, rather than 16 (2000 years ago).

This patch makes it more clear as the output is 0016.

Addresses: https://github.com/karelzak/util-linux/issues/320
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/cal.c