If you're on an Windows XP or Vista box and live in the U.S...
Jonathan M Davis
jmdavisProg at gmx.com
Wed Mar 23 23:27:45 PDT 2011
If you're on an Windows XP box and live in the continental U.S., I'd very much
appreciate if you could run this program and post the output:
import std.datetime;
import std.stdio;
void main()
{
writeln(SysTime(Date(1999, 3, 1)));
writeln(SysTime(Date(1999, 3, 8)));
writeln(SysTime(Date(1999, 3, 14)));
writeln(SysTime(DateTime(1999, 3, 14, 1, 0, 0)));
writeln(SysTime(DateTime(1999, 3, 14, 2, 0, 0)));
writeln(SysTime(DateTime(1999, 3, 14, 3, 0, 0)));
writeln(SysTime(Date(1999, 3, 15)));
writeln(SysTime(Date(1999, 3, 22)));
writeln(SysTime(Date(1999, 3, 29)));
writeln(SysTime(Date(1999, 4, 1)));
writeln(SysTime(Date(1999, 4, 3)));
writeln(SysTime(DateTime(1999, 4, 4, 1, 0, 0)));
writeln(SysTime(DateTime(1999, 4, 4, 2, 0, 0)));
writeln(SysTime(DateTime(1999, 4, 4, 3, 0, 0)));
writeln(SysTime(Date(1999, 4, 5)));
}
I only have Windows 7 to play around with, and I'd like to know what happens
on XP and Vista. My guess is that Vista acts the same as 7, but I'm not at all
certain that XP does. This code uncovers a bug in std.datetime on Windows 7,
and the best way to solve it could depend on the behavior of Windows XP and
Vista. So, if you have the appropriate OS and live in the continental US (or
use the _exact_ same time zone as one of the 3 primary U.S. time zones), I'd
appreciate it if you could run this program and post the output. Thanks.
The related bug report is here:
http://d.puremagic.com/issues/show_bug.cgi?id=5781
- Jonathan M Davis
More information about the Digitalmars-d
mailing list