GNU bug report logs - #12318
gnu date has incorrect date when using date math during a leap year

Previous Next

Package: coreutils;

Reported by: John Mizell <john.mizell <at> gmail.com>

Date: Fri, 31 Aug 2012 16:26:02 UTC

Severity: normal

Tags: notabug

Done: Bob Proulx <bob <at> proulx.com>

Bug is archived. No further changes may be made.

Full log


Message #23 received at submit <at> debbugs.gnu.org (full text, mbox):

From: SciFi <sci-fi <at> hush.ai>
To: bug-coreutils <at> gnu.org
Subject: Re: bug#12318: gnu date has incorrect date when using date math
	during a leap year
Date: Fri, 31 Aug 2012 22:06:50 +0000 (UTC)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi again,

Thank you for discussing this.

On further thought…

It seems that the "day" again is being "inserted" into this
situation, "ruining" the "proper answer".

I can see the automatic assumption of assigning "Day=Today" in
the present logic.  Again I would suggest a new option such as
- --no-assumptions or --pedantic to tell it *not* to make [such]
assumptions when that "piece" is not part of the "picture".

Let me explain:

The o.p. (Mr Mizell) shows several lines with only the month
and year to be presented.  No "day" at all.  The "A.I."
implied would be rather simple: it's begging to say "I don't
care about the Day, just deal with the Month [and Year] in
this equation."

By having just-this-much logic in GNU-date could perhaps
alleviate many of these type problems without breaking so-many
historical things while simultaneously providing "correct"
answers [hopefully finally].  Still without having to use the
Day-15 trick of course.  ;)

(…yeah, I still wouldn't know how to code this, alas…)


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (Darwin)
Comment: GPGTools - http://gpgtools.org

iQEcBAEBAgAGBQJQQTRcAAoJEKkeWNKet7+K0d0H/0krWsNTmggUcDVtRrbGR6eg
h+7Czuo8O4oi+awujB8qj5VOVpXEc9aMlO83MuExgFchCgSeRMxkh9K9W2TIhSxZ
f43rhYpSoebGcz652vItmNCCSo0A24WSpqcVlZzCj1hWOJYXlMNVRPAIFmB2zvmh
JJ5Z1kSkHKuvuvqUhTz47K4oHSNnua1K8vLg98OK/F+FPEUzi0mfL7t743PCX9QT
PhZdkhAyl6pmcl3RJNDuK+Kt4HLshG2+W/YPisDlrlu8t0v1uuolwmDTeOMO6PuF
a/hUrlF8V2pGPqm/fYFQf02sxDawjZQqnBjLpOc10KdBp16kh73Nlq38mRExurU=
=jefA
-----END PGP SIGNATURE-----

-- 





This bug report was last modified 12 years and 362 days ago.

Previous Next


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