[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27482: date: minus and ago in same sentence
From: |
積丹尼 Dan Jacobson |
Subject: |
bug#27482: date: minus and ago in same sentence |
Date: |
Sun, 25 Jun 2017 18:53:29 +0800 |
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...
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#27482: date: minus and ago in same sentence,
積丹尼 Dan Jacobson <=