std.datetime & timzone specifier: 2018-11-06T16:52:03+01:00

Robert M. Münch robert.muench at
Sun Mar 8 17:28:33 UTC 2020

On 2020-03-07 12:10:27 +0000, Jonathan M Davis said:

> I take it that you're asking why you don't get the time zone as part of the
> string when you call one of the to*String functions?

The problem is, the from* functions give an error, that this is not an 
ISO date.

I get this in an XML response and extract the datetime:

<ad:creation-date value="2018-11-06T16:52:03+01:00"/>
<ad:modification-date value="2019-03-04T10:14:09+01:00"/>

But I have to do:

DateTime dt = 

IMO such a string should be feedable directly to the function.

Robert M. Münch
smarter | better | faster

More information about the Digitalmars-d-learn mailing list