[Mono-devel-list] Re: [PATCH] Various DateTime fixes and tests

Steven Brown swbrown at ucsd.edu
Thu Jun 3 01:53:44 EDT 2004


Gonzalo Paniagua Javier wrote:
> El mié, 02-06-2004 a las 23:42, Steven Brown escribió:
> 
> 
>>Fixes handling of milliseconds in _DoParse so it properly captures all 
>>provided digits.
> 
> 
> I fixed this in CVS a few days ago and your patch replaces my fix. Any
> reason for this?

I originally changed beta1 which was capturing no milliseconds, then 
ported it to beta2 which was capturing no fractions of milliseconds.  If 
that's the same version of it as what you added to CVS, that's why I 
changed it.

One of the test cases I attached, 
MonoTests.System.DateTimeTest.ParseExactMilliseconds, demonstrates this. 
  Basically, if I remember beta1's result right:

DateTime.ParseExact("2004-05-26T03:29:01.1234567-07:00", 
"yyyy-MM-ddTHH:mm:ss.fffffffzzz", null).Ticks:

Microsoft .NET and my patch: 632211389411234567
Mono beta2                 : 632211389411230000
Mono beta1                 : 632211389410000000




More information about the Mono-devel-list mailing list