You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The coreutils version currently uses the parse_datetime crate to parse the date source which parses in YYYYMMDDHHMM and similar formats. However it is not compliant with date:
Usage: date [OPTION]... [+FORMAT]
or: date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]
Display date and time in the given FORMAT.
With -s, or with [MMDDhhmm[[CC]YY][.ss]], set the date and time.
GNU:
$ date 11111111
Mon 11 Nov 2024 11:11:00 AEDT
coreutils
$ cargo run --release -p uu_date -- 11111111
target/release/date: invalid date '11111111'
Since it is interpreting the first 1111 as the year.
Note: date -s STRINGis compliant with GNU the version, only the positional argument format is affected.
The text was updated successfully, but these errors were encountered:
The coreutils version currently uses the
parse_datetime
crate to parse the date source which parses inYYYYMMDDHHMM
and similar formats. However it is not compliant withdate
:GNU:
coreutils
Since it is interpreting the first
1111
as the year.Note:
date -s STRING
is compliant with GNU the version, only the positional argument format is affected.The text was updated successfully, but these errors were encountered: