[Glass] DateAndTime string representation
Ralph Mauersberger
ralph.mauersberger at gmx.net
Thu Nov 27 12:52:05 PST 2025
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
> https://lists.gemtalksystems.com/mailman/listinfo/glass
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/archives/glass/attachments/20251127/9b138ec9/attachment.htm>
More information about the Glass
mailing list