uutils / coreutils

Cross-platform Rust rewrite of the GNU coreutils
https://uutils.github.io/
MIT License
17.55k stars 1.26k forks source link

date: doesn't support `-d"xxx +23 day"` #6662

Open sylvestre opened 3 weeks ago

sylvestre commented 3 weeks ago

example:

$ /usr/bin/date -d'2005-01-01 +351 day'
2005
$ ./target/debug/coreutils date -d'2005-01-01 +351 day'
date: invalid date '2005-01-01 +351 day'

Tested here: https://github.com/coreutils/coreutils/blob/master/tests/date/date.pl#L325

dhilst commented 2 weeks ago

I'm working on this, I have a fallback parsing code here: https://github.com/uutils/coreutils/pull/6667 I'm looking at other issues about date formatting as well