Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sylvestre opened this issue Aug 21, 2024 · 1 comment
Open

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

sylvestre opened this issue Aug 21, 2024 · 1 comment
Labels

Comments

@sylvestre
Copy link
Contributor

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

dhilst commented Aug 25, 2024

I'm working on this, I have a fallback parsing code here: #6667
I'm looking at other issues about date formatting as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants