Subject: Re: bug#10182: Century bug in date utility?

From: Krzysztof Kowalski <[email-masked]>
Date: Thu, 01 Dec 2011 19:45:48 +0100

W dniu 2011-12-01 18:35, Eric Blake pisze:
> tag 10182 notabug
> thanks
>
> On 12/01/2011 08:34 AM, Krzysztof Kowalski wrote:
>>
>
> Yep. And this behavior is mandated by POSIX for strftime(), so it is
> not a bug.
>
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/strftime.html
>
> C
> Replaced by the year divided by 100 and truncated to an integer, as
> a decimal number. [ tm_year]
>
> That is, it is NOT the "century" in the vernacular (where years in the
> range [2001,2100] are collectively called the 21st century), but the
> first two digits of the year. The idea is that you combine %C%y to form %Y.
>

OK, thank you for answer, but it still isn't logical,
century is century by common sense,
if there's 21st century right now 21 should be returned.

- -- 
best regards
  -- Kowalski Krzysztof