May 15, 2006 Re: std.date again | ||||
---|---|---|---|---|
| ||||
Posted in reply to Carlos Santander | Carlos Santander escribió: > Here it's again: > > //------------------------ > import std.date; > import std.stdio; > > void main() > { > writefln("UTC :%s", toTimeString(getUTCtime())); > writefln("Local:%s", toTimeString(UTCtoLocalTime(getUTCtime()))); > } > //------------------------ > > :::: gdc 0.17, Mac OS X 10.4.6 > > $ ./test > UTC :06:20:52 GMT+0500 > Local:11:20:52 GMT+0500 > > $ date > Mon May 8 20:21:01 ECT 2006 > > Part of the problem here (I think) is in std/date.d:794, because as I said in digitalmars.D.bugs, UTCtoLocalTime() is added when it shouldn't have, so maybe changing the sign in getLocalTZA() will solve it? -- Carlos Santander Bernal |
Copyright © 1999-2021 by the D Language Foundation