bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12318: gnu date has incorrect date when using date math during a lea


From: SciFi
Subject: 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)
User-agent: Pan/0.139 (Sexual Chocolate; GIT 4162e82 (git.gnome.org/pan2/master); x86_64-apple-darwin10.8.0; gcc-4.2.1 (Apple build 5666 (dot 3)); 32-bit mode)

-----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-----

-- 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]