[Mono-dev] DateTime in .NET 2.0
atsushi at ximian.com
Thu Jan 26 12:32:25 EST 2006
> I noticed the 2.0 members of System.DateTime are not implemented in mono
> v184.108.40.206 (this includes ToBinary(), FromBinary() and Kind). The missing
> members do not appear in the class status pages though.
> I am willing to do this and provide the patch to the list. I have just 1
Oh, nice, contributions are precious and always welcomed :-)
> question :
> The DateTime struct uses a private TimeSpan. To encode/decode to/from binary
> form, I need to use 2 bits for the Kind property thus leaving ‘only’ 62 bits
> for the Ticks property. Is it correct to have the DateTime.MaxValue
> decreased to prevent overflow when encoding ToBinary ? (this is not
> documented in msdn2).
I am not sure about DateTime changes, but as for TimeSpan I saw that its
range was narrowed - TimeSpan.MaxValue in .NET 2.0 is smaller than
that of .NET 1.1 (so many TimeSpan tests fail under MS.NET 2.0). HTH.
More information about the Mono-devel-list