GNU bug report logs -
#27482
date: add support for words: "one", "two", etc.
Previous Next
To reply to this bug, email your comments to 27482 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#27482
; Package
coreutils
.
(Sun, 25 Jun 2017 12:32:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Sun, 25 Jun 2017 12:32:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I got an idea.
Please parse "one", "two", "three".... (lower and upper case folded too.)
1. Because it is proper English. "1 day ago" is cellphone English.
2. Because there can't be that many of them... (seventy-three,
seventy-four... well they are made up of other components...)
3. Because it will avoid the user getting these surprising results,
$ date -d 'two weeks ago'
date: invalid date ‘two weeks ago’
$ date -d 'now - two weeks ago'
date: invalid date ‘now - two weeks ago’
$ date -d 'now - 2 weeks ago'
Sun Jul 9 18:39:23 CST 2017
Or just catch the error of "-" and "ago" in the same sentence.
Or perhaps warn on (info "(coreutils) Relative items in date strings")
about minus and ago...
Severity set to 'wishlist' from 'normal'
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Mon, 29 Oct 2018 03:25:02 GMT)
Full text and
rfc822 format available.
Changed bug title to 'date: add support for words: "one", "two", etc.' from 'date: minus and ago in same sentence'
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Mon, 29 Oct 2018 03:25:02 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 234 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.