uutils/parse_datetime

Days of the week are not recognized

Closed this issue · 7 comments

GNU date recognizes days of the week and their three-letter abbreviations (plus tues, thur, and thurs), for example:

$ date --date="monday"
Mon Jun 26 12:00:00 AM CEST 2023
$ date --date="mon"
Mon Jun 26 12:00:00 AM CEST 2023
$ date --date="tuesday"
Tue Jun 20 12:00:00 AM CEST 2023
$ date --date="tue"
Tue Jun 20 12:00:00 AM CEST 2023

uutils date, using parse_datetime, doesn't recognize any days of the week and returns an "invalid date" error instead.

I will tackle this.

@philolo1 maybe before adding functionality we have to focus on the port to nom. If you want we can discuss with the author of that PR if you can adopt the PR.

@tertsdiepraam sure, do you have a link to the pr?

Here you go: #25

any progress on merging this?

Unfortunately not. I'd love to look into it again but I'm not sure I can do that anytime soon. I'd be happy if someone would pick up my rewrite PR though.

Closing this ticket as the functionality has been implemented in the meantime.