[Issue 24704] DateTime.fromISOExtString Does Not Support ISO8601 Time Unit Fractions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Aug 16 13:08:40 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24704
Carsten Schlote <schlote at vahanus.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |schlote at vahanus.net
--- Comment #11 from Carsten Schlote <schlote at vahanus.net> ---
I can see good reasons to add a 'fraction of a second' to TimeOfDay. In this
case it would be really easy to add the missing functionality to
to/fromISOExtString. And it also fits reality a little bit better, because
fractions of a seconds do matter in real life.
However, there are also good reasons to avoid changes in the core libs without
very good reasons. At least it will increase memory footprint because you must
store the fraction of a second somewhere. So any change must be very
intensively and well tested.
Otherwise, if we add sucha fraction, in return we would get:
- No/less info ist lost, when cast from SysTime to DateTime. And vice versa.
- No more confusion with different variant of from ISOExtString.
--
More information about the Digitalmars-d-bugs
mailing list