[Issue 16053] New: SysTime.fromIsoExtString don't work if nanoseconds are presented
digitalmars-d-bugs at puremagic.com
Sat May 21 12:52:43 PDT 2016
Issue ID: 16053
Summary: SysTime.fromIsoExtString don't work if nanoseconds are
Assignee: nobody at puremagic.com
Reporter: chalucha at gmail.com
Just came across the REST API which returns time in format like this:
Which results in Invalid ISO Extended String exception.
Accoording to wikipedia, there is no limit for decimal fraction:
"There is no limit on the number of decimal places for the decimal fraction.
However, the number of decimal places needs to be agreed to by the
There is this check in a fracSecsFromISOString method:
enforce(!str.empty && str.length <= 7, new DateTimeException("Invalid ISO
It would be nice if this method can handle this kind of input strings even
though that nanoseconds would be thrown away (probably should be documented
Is this legit?
More information about the Digitalmars-d-bugs