Re: SysTime.toISOExtString with timezone offset

2015-04-20 Thread Steven Schveighoffer via Digitalmars-d-learn
On 4/20/15 4:47 AM, Jonathan M Davis via Digitalmars-d-learn wrote: Perhaps, LocalTime should be changed so that it prints the time zone out (and just make it so that the lack of time zone is read in as local time rather than treating it that way in both directions), but that's not how it works

Re: SysTime.toISOExtString with timezone offset

2015-04-20 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, April 20, 2015 08:10:40 Jack Applegame via Digitalmars-d-learn wrote: > I need current system time ISO string with timezone offset. For > example > "2015-04-20T11:00:44.735441+03:00" > but Clock.currTime.toISOExtString doesn't write offset: > "2015-04-20T11:00:44.735441+03:00" > > I foun

SysTime.toISOExtString with timezone offset

2015-04-20 Thread Jack Applegame via Digitalmars-d-learn
I need current system time ISO string with timezone offset. For example "2015-04-20T11:00:44.735441+03:00" but Clock.currTime.toISOExtString doesn't write offset: "2015-04-20T11:00:44.735441+03:00" I found workaround, but it looks redundant and needs memory allocation: auto t = Clock.currTime