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: James Youngman <jay <at> gnu.org>
To: Dimitri Tassiaux <d.tassiaux <at> gmail.com>
Cc: 8930 <at> debbugs.gnu.org
Subject: bug#8930: $date +%C
Date: Sat, 25 Jun 2011 21:18:18 +0100
2011/6/24 Dimitri Tassiaux <d.tassiaux <at> gmail.com>:
> *Century error !*

This isn't a very intelligible bug report.   When reporting a bug in
software please state as precisely as possible:
1. What you did.
2. What you expected to happen.
3. What actually did happen.

In this case I assume you think that %C prints the century, for
example 21.   It turns out that it doesn't.   From the documentation:
       %C     century; like %Y, except omit last two digits (e.g., 20)

I agree though that using the word "century" here is misleading.

> date (GNU coreutils) 8.5
> Copyright © 2010 Free Software Foundation, Inc.
> License GPLv3+ : GNU GPL version 3 ou ultérieure
> <http://gnu.org/licenses/gpl.html>
> Ceci est logiciel libre, vous êtes libre de le modifier et de le
> redistribuer.
> Ce logiciel n'est accompagné d'ABSOLUMENT AUCUNE GARANTIE, dans les limites
> autorisees par la loi applicable.
>
> Écrit par David MacKenzie.
>




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.