GNU bug report logs - #10699
bug of `date`: why 1/1/2012 is the second week of 2012?

Previous Next

Package: coreutils;

Reported by: "Wang, YuanTao" <ytwang <at> freewheel.tv>

Date: Thu, 2 Feb 2012 17:06:02 UTC

Severity: normal

Tags: notabug

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Wang, YuanTao" <ytwang <at> freewheel.tv>
To: 10699 <at> debbugs.gnu.org
Subject: bug#10699: bug of `date`: why 1/1/2012 is the second week of 2012?
Date: Thu, 2 Feb 2012 02:25:59 -0600
[Message part 1 (text/plain, inline)]
$ date -d "2012-01-01 00:00:00" +%U
01

but in "man date"
%U     week number of year, with Sunday as first day of week (00..53)

Is it a bug?

$ uname -r
2.6.18-128.1.6.el5xen

[Message part 2 (text/html, inline)]

This bug report was last modified 13 years and 171 days ago.

Previous Next


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