std.datetime & timzone specifier: 2018-11-06T16:52:03+01:00
tchaloupka
chalucha at gmail.com
Mon Mar 9 05:19:33 UTC 2020
On Sunday, 8 March 2020 at 17:28:33 UTC, Robert M. Münch wrote:
> On 2020-03-07 12:10:27 +0000, Jonathan M Davis said:
>
> DateTime dt =
> DateTime.fromISOExtString(split("2018-11-06T16:52:03+01:00",
> regex("\\+"))[0]);
>
> IMO such a string should be feedable directly to the function.
You just need to use SysTime.fromISO*String functions for that,
as DateTime does't work with timezones, SysTime do.
More information about the Digitalmars-d-learn
mailing list