On 18/08/2024 00:47, Marc Gutt wrote:
Dear GNU Team,

I like to see the following features / enhancements:

find
Add %z to help / man page. The numeric time zone sequence is not
mentioned by now.

Please send above to bug-findut...@gnu.org

date
Add additional basic ISO 8601 date formats to -d as follows:
%Y%m%dT%H%M%S (example: date -d "20240818T013200")
%Y%m%dT%H%M%SZ (example: date -d "20240818T013200Z")
%Y%m%dT%H%M%S%z (example: date -d "20240818T013525+0200")

and all three variants in addition with .%N for optional fraction of
second (example: date -d "20240818T013525.052+0200")

Those are are all the legal "basic format" of the ISO 8601 as described
here:
https://en.wikipedia.org/wiki/ISO_8601

I think they would be useful for linux/windows filename interoperability.


Right, so we currently support extended ISO format (with delimiters),
and you'd like support for basic ISO format (without delimiters).
date input processing is fraught with edge cases and compat issues,
so I'm not sure how practical this would be to support.
For reference we currently process basic ISO format like:

$ date --debug -d '20240819T130025'
date: parsed number part: (Y-M-D) 2024-08-19
date: parsed zone part: UTC-07
date: parsed number part:
date: input timezone: parsed date/time string (-07)
date: error: seen multiple date parts
date: invalid date ‘20240819T130025’

cheers,
Pádraig

Reply via email to