[Issue 8646] std.datetime ISO strings are incompatible with ISO 8601

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 12 13:29:46 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8646



--- Comment #3 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-09-12 13:30:04 PDT ---
Just strip the fractional seconds from the SysTime by setting its fracSec
property to 0. So, something like

sysTime.fracSec = FracSec.from!"msecs"(0);

(I should probably add a static property to FracSec which gives you 0, but
there isn't anything like that right now). Then when you call toISOString or
toISOExtString, it doesn't have any fractional seconds, so the resultant string
won't have them.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list