GNU bug report logs - #52525
wanted to add option to date command to handle pure numeric input in varying ways and output for invalid dates

Previous Next

Package: coreutils;

Reported by: Mike Marchywka <marchywka <at> hotmail.com>

Date: Wed, 15 Dec 2021 21:58:01 UTC

Severity: wishlist

Full log


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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Mike Marchywka <marchywka <at> hotmail.com>, 52525 <at> debbugs.gnu.org
Subject: Re: bug#52525: wanted to add option to date command to handle pure
 numeric input in varying ways and output for invalid dates
Date: Wed, 15 Dec 2021 14:37:46 -0800
On 12/15/21 14:24, Mike Marchywka wrote:

> if date is
> going to be a swiss army knife for date conversions
> it makes some sense to allow user selection of
> ambiguity resolution doesn't it?

There are thousands of possible data conversions and I'm not sure we 
want to head down the road of trying to handle them all.

That being said, this particular conversion might be worth the trouble. 
However, 'date' uses the same date parser that a lot of other GNU 
programs do. Surely if there's a change to be made to date parsing it 
should be made there, not just to 'date', so that all the other programs 
can use the new functionality.




This bug report was last modified 3 years and 229 days ago.

Previous Next


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