Issues after incorporating changes in 77281

Apr 11, 2012 at 9:41 PM
Edited Apr 11, 2012 at 9:41 PM

Hi David,

I'm seeing a couple of issues:

(1) Visual Studio 10 requires that a definition for the operator != must also be defined. I tried adding:

public static bool operator !=(SystemTime s1, SystemTime s2)
{
   return (s1.Year != s2.Year || s1.Month != s2.Month || s1.Day != s2.Day || s1.Hour != s2.Hour || s1.Minute != s2.Minute ||  s1.Second != s2.Second || s1.Milliseconds != s2.Milliseconds);
}

(2) Visual Studio 10 complains about the keyword "public" in the constructor static public SystemTime(). I tried modifying it to:

static SystemTime()
{
   MinValue = new SystemTime(1601, 1, 1);
   MaxValue = new SystemTime(30827, 12, 31, 23, 59, 59, 999);
}

It now compiles, but if I click on the Run Times tab, it throws an exception (something about unpresentable date format out of range).

Thanks, Audi

 

 

 

Coordinator
Apr 12, 2012 at 5:36 AM

Fixed in 77410. Thanks for the catch. That's what I get for not testing changes before checking in. :)