GNU bug report logs -
#10182
Century bug in date utility?
Previous Next
Full log
Message #13 received at 10182-done <at> debbugs.gnu.org (full text, mbox):
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJO18tcAAoJEF58oZESZVTjU7QIAJJGkrll7d9b+NT7AHTYms1V
je2b5GzWD3DA+56QPqBLAOFv2XcnhcrxJIyAr117idsXrbRgxWFOiZTwniJYtjez
Zkc8hWa2YKiljlSVut/XVG1jwEmDG3mYmmmxp6DfkPnF2/1ua3HMpiT9VvKg7Blp
wNTrwdxBPapaFthSDPEKvuWFInx2ogmba17MNaW6zxXh+dWS0Sgh0Qz73ImnftiK
PnSZeNsdiJszyx7etV9YdrsFB7zxpv9OduUArZ2y/XDWDjIBxbMM1hQTLH273Z6L
PhNNMPPvTdFdTckWlO7fOdq5BD3CK4ISnWTiyImpooEt4A+rh0/YgR+o1v6dVWc=
=qtC6
-----END PGP SIGNATURE-----
This bug report was last modified 13 years and 176 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.