coreutils
coreutils copied to clipboard
`touch -d"2022-05-15 +01 month" 01.ts` isn't supported
Should return:
-rw-r--r-- 1 sylvestre sylvestre 0 15 juin 2022 01.ts
Currently fails with:
touch: Unable to parse date: 2022-05-15 +01 month
Used by gnu/tests/ls/abmon-align.sh
looking into this one
The full documentation on every format that GNU supports is here: https://www.gnu.org/software/coreutils/manual/html_node/Date-input-formats.html
In particular, the part that this issue is about is: https://www.gnu.org/software/coreutils/manual/html_node/Relative-items-in-date-strings.html
I suggest that we implement this in uucore (if we can't find an existing library) so that it can be used in multiple utils.
I suggest that we implement this in uucore (if we can't find an existing library) so that it can be used in multiple utils.
Or in a crate base on time or chrono which could be used by other projects too :)
Agreed!