GNU bug report logs - #8930
date +%C

Previous Next

Package: coreutils;

Reported by: Dimitri Tassiaux <d.tassiaux <at> gmail.com>

Date: Fri, 24 Jun 2011 18:51:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Dimitri Tassiaux <d.tassiaux <at> gmail.com>
Subject: bug#8930: closed (Re: date +%C)
Date: Fri, 24 Jun 2011 19:53:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#8930: date +%C

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 8930 <at> debbugs.gnu.org.

-- 
8930: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8930
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eric Blake <eblake <at> redhat.com>
To: Dimitri Tassiaux <d.tassiaux <at> gmail.com>, 8930-done <at> debbugs.gnu.org
Subject: Re: date +%C
Date: Fri, 24 Jun 2011 13:52:02 -0600
[Message part 3 (text/plain, inline)]
tag 8930 notabug
thanks

> ~$ *date*
> vendredi 24 juin 2011, 20:32:50 (UTC+0200)
> ~$ *date +%C*
> 20
> 
> 
> *# 21st Century !*
> 

Thanks for the report.  However, this is not a bug.

%C does not mean the century in common parlance, rather, according to
POSIX, it means:

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/date.html

> 
> %C
>     Century (a year divided by 100 and truncated to an integer) as a decimal number [00,99].

Yes, the mnemonic is using century for lack of a better term, but it is
correctly printing all but the last two digits of the year.

-- 
Eric Blake   eblake <at> redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Dimitri Tassiaux <d.tassiaux <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: date +%C
Date: Fri, 24 Jun 2011 20:39:41 +0200
[Message part 6 (text/plain, inline)]
~$ *date*
vendredi 24 juin 2011, 20:32:50 (UTC+0200)
~$ *date +%C*
20


*# 21st Century !*



Dimitri Tassiaux


[image: bug date.png]




-- 
Si tu as une pomme, que j'ai une pomme, et que l'on échange nos pommes, nous
aurons chacun une pomme. Mais si tu as une idée, que j'ai une idée et que
l'on échange nos idées, nous aurons chacun deux idées.
George Bernard Shaw (1856-1950)
[Message part 7 (text/html, inline)]
[bug date.png (image/png, inline)]

This bug report was last modified 14 years and 51 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.