GNU bug report logs - #10182
Century bug in date utility?

Previous Next

Package: coreutils;

Reported by: Krzysztof Kowalski <krzysztof7kowalski <at> gmail.com>

Date: Thu, 1 Dec 2011 17:11:01 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 10182-done <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: Krzysztof Kowalski <krzysztof7kowalski <at> gmail.com>
Cc: 10182-done <at> debbugs.gnu.org
Subject: Re: bug#10182: Century bug in date utility?
Date: Thu, 01 Dec 2011 11:53:11 -0700
[Message part 1 (text/plain, inline)]
On 12/01/2011 11:45 AM, Krzysztof Kowalski wrote:
> 
> OK, thank you for answer, but it still isn't logical,

What's not logical, that %C follows POSIX?

> century is century by common sense,
> if there's 21st century right now 21 should be returned.

Maybe the confusion is coming from the fact that 'date --help' mentions
the word "century" as a mnemonic for %C, even though the POSIX wording
for %C specifically avoids "century" because %C is _not_ a century in
the vernacular usage.  Would a patch to the 'date --help' wording
alleviate your concerns?  If so, could you propose better wording for
what 'date --help' should say for %C that is still concise and accurate,
but does not mention a misleading mnemonic?

-- 
Eric Blake   eblake <at> redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

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.