bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

date: century option


From: Fabrice Baro
Subject: date: century option
Date: Wed, 09 Feb 2005 17:24:54 -0500
User-agent: Mozilla Thunderbird 1.0 (X11/20041206)

Hello,

The %C option for the "date" command returns the "year divided by 100 and truncated to an integer". For exemple, "date +%C" returns 20. But we are in the 21st century, aren't we ? Why not return the year/100 + 1 to give the correct century ?

Fabrice




reply via email to

[Prev in Thread] Current Thread [Next in Thread]