digitalmars.D.bugs - getLocalTZA(in Windows 2000)
- k2 (21/21) Jan 04 2005 Still I can't get local time, in Windows 2000.
Still I can't get local time, in Windows 2000. When in Windows98, I can get it. A return value of GetTimeZoneInformation is different when a time zone are not transition dates: WindowsNT TIME_ZONE_ID_UNKNOWN Windows9x TIME_ZONE_ID_STANDARD Probably, also in the case of TIME_ZONE_ID_UNKNOWN, should return value of Bias. sample ------ import std.date; void main() { printf("UTC :%.*s\n", toString(getUTCtime())); printf("Local:%.*s\n", toString(UTCtoLocalTime(getUTCtime()))); } UTC :Wed Jan 05 05:00:42 GMT+0000 2005 Local:Wed Jan 05 05:00:42 GMT+0000 2005 I need +0900. ------ I posted same thing before. http://www.digitalmars.com/d/archives/digitalmars/D/bugs/1787.html
Jan 04 2005