Hi Terrance,

You said:

> Package: coreutils
> Version: 9.7-3
> 
> 
> date command uses a comma ',' as the decimal point for `date --iso-8601=ns`
> output, causing  parsing issues. but --rfc-3339 uses a dot '.' .
> 
> console: '%' is command prompt
> 
> ```
> % date --iso-8601=ns
> 2025-10-25T15:21:22,840959700-07:00
> % date --rfc-3339=ns
> 2025-10-25 15:21:40.295367270-07:00
> ```
> 
> 
> I read ISO8601 and RFC3339 and found no definition of decimal fraction of
> second. But should `date` command print the fraction number using locale
> format?

My understanding is that the 2019 edition of ISO 8601 explicitly states
that a comma or period can be used [1]. It is difficult to get an exact
quote on that since it is a paid standard. :(

I see that we have a similar bug report upstream where Paul Eggert came
to the same conclusion [2].

Collin

[1] https://en.wikipedia.org/wiki/ISO_8601#Times
[2] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63119

Reply via email to