[Glass] DateAndTime string representation
Marten Feldtmann
m at feldtmann.online
Tue Dec 2 11:58:28 PST 2025
I assume, that both "." and "," are valid seperators - even in the german page of Wikipedia BOTH characters are mentioned ...
Marten
> Ralph Mauersberger via Glass <glass at lists.gemtalksystems.com> hat am 27.11.2025 21:52 CET geschrieben:
>
>
>
> Hello Richard,
>
> I don't know if there is a consensus on this. My personal opinion: I prefer a period regardless of the localization (in my case Germany), as I see the character more as a structural character than a decimal separator in the mathematical sense. As far as I know, ISO 8601 allows both variants, a period and a comma. I would therefore like to use a period when writing with asString. When reading with fromString:, I would like to have a tolerance that can handle both, periods and commas, as there is no ambiguity.
>
> Best regards,
> Ralph
>
>
>
> Am 26.11.2025 um 01:38 schrieb Richard Sargent via Glass:
>
> > Is there a consensus among those who use a non-English locale how DateAndTime instances should print the decimal point in the seconds portion and how DateAndTime class>>#fromString: should parse it?
> >
> > The ANSI standard really did not address internationalization.
> >
> >
> > _______________________________________________
> > Glass mailing list
> > Glass at lists.gemtalksystems.com mailto:Glass at lists.gemtalksystems.com
> > https://lists.gemtalksystems.com/mailman/listinfo/glass
> >
> _______________________________________________ Glass mailing list Glass at lists.gemtalksystems.com https://lists.gemtalksystems.com/mailman/listinfo/glass
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/archives/glass/attachments/20251202/b1ab9236/attachment.htm>
More information about the Glass
mailing list