Re: Build a SysTime from a string

2016-07-06 Thread Jack Stouffer via Digitalmars-d-learn
On Wednesday, 6 July 2016 at 15:38:00 UTC, Andrea Fontana wrote: On Wednesday, 6 July 2016 at 14:55:51 UTC, Jonathan M Davis wrote: auto st = SysTime.fromISOExtString("2011-03-02T15:30:00+01:00"); That's perfect. I didn't notice that static method. My fault! Also, if you need to parse other

Re: Build a SysTime from a string

2016-07-06 Thread Andrea Fontana via Digitalmars-d-learn
On Wednesday, 6 July 2016 at 14:55:51 UTC, Jonathan M Davis wrote: auto st = SysTime.fromISOExtString("2011-03-02T15:30:00+01:00"); That's perfect. I didn't notice that static method. My fault!

Re: Build a SysTime from a string

2016-07-06 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, July 06, 2016 14:15:22 Andrea Fontana via Digitalmars-d-learn wrote: > Ok, I have a string like: > 2011-03-02T15:30:00+01:00 > > I need to convert it in a SysTime object. > > My problem is that from documentation I can't understand how to > set +01:00 timezone on systime. I guess

Build a SysTime from a string

2016-07-06 Thread Andrea Fontana via Digitalmars-d-learn
Ok, I have a string like: 2011-03-02T15:30:00+01:00 I need to convert it in a SysTime object. My problem is that from documentation I can't understand how to set +01:00 timezone on systime. I guess I'm missing something... Andrea

Re: Build a SysTime from a string

2016-07-06 Thread Andrea Fontana via Digitalmars-d-learn
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.

Re: Build a SysTime from a string

2016-07-06 Thread Dejan Lekic via Digitalmars-d-learn
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