Hello,

Is there a way I can ask Gnu date to parse date input that specifies a
week of the year, without specifying a month or date (except maybe
day-of-the-week)?

Example:

$ date +%F -d 2019-W14-2  # expected output: 2019-04-02
date: invalid date '2019-W14-2'

Previously posted on stackoverflow [1], hoping this is a more fruitful
place to get answers. Note that though my example and that question
specify ISO format for week-of-year (and that seems like the most
straightforward possibility), I'm interested in any way of providing
this information to `date`. I'd be grateful for any insight.

[1]: "Interpret ISO week-of-year in gnu coreutils"
"https://stackoverflow.com/q/55474902/3229874";

Reply via email to