[Issue 24704] DateTime.fromISOExtString Does Not Support ISO8601 Time Unit Fractions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 15 16:30:29 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24704

Jonathan M Davis <issues.dlang at jmdavisProg.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |issues.dlang at jmdavisProg.co
                   |                            |m

--- Comment #3 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
DateTime is not supposed to support fractional seconds. It's specifically for
dealing with calendar operations. SysTime is the time intended for the system
time. The documentation is clear on this.

As such, if you have an ISO or ISO extended string which may contain fractional
seconds, you should use SysTime's fromISO(Ext)String, not DateTime's.

--


More information about the Digitalmars-d-bugs mailing list