Build a SysTime from a string
Andrea Fontana via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jul 6 07:24:25 PDT 2016
On Wednesday, 6 July 2016 at 14:19:56 UTC, Dejan Lekic wrote:
> On Wednesday, 6 July 2016 at 14:15:22 UTC, Andrea Fontana wrote:
>> My problem is that from documentation I can't understand how
>> to set +01:00 timezone on systime. I guess I'm missing
>> something...
>
> As far as I know, you can't do that.
>
> Quote from the documentation:
> """
> Unlike DateTime, the time zone is an integral part of SysTime
> (though for local time applications, time zones can
> """
>
> It does make sense, right? SysTime is object representing your
> system's time, and naturally it already has timezone set to the
> right (system) value.
But SysTime has a c-tor that accepts a TimeZone, how can I set
that?
Anyway, If i'm not wrong, it's the only object with TimeZone
support, isn't it?
More information about the Digitalmars-d-learn
mailing list