Possible bug on Year class

J J azreal1977 at hotmail.com
Sat Nov 18 19:11:18 UTC 2006


Ok.  Just wanted to make sure it was a bug before I go make a bogus bug 
report.

Thanks,
Jason

>From: "Tom Phoenix" <rootbeer at redcat.com>
>Reply-To: The general-purpose Squeak developers 
>list<squeak-dev at lists.squeakfoundation.org>
>To: "The general-purpose Squeak developers 
>list"<squeak-dev at lists.squeakfoundation.org>
>Subject: Re: Possible bug on Year class
>Date: Sat, 18 Nov 2006 09:35:51 -0800
>
>On 11/18/06, J J <azreal1977 at hotmail.com> wrote:
>
>>I think there is a bug with the Year class (at least it is not consistant
>>with the Month class):  If you do "aDateAndTime asYear" it keeps the date 
>>in
>>the start field so that if you then say "asDate" you get the original back
>>instead of the expected January 1.  If I do the same with "aDateAndTime
>>asMonth asDate" it will switch from what ever date it was to the first day
>>of that month (as I would expect).
>
>So, you're saying
>
>    (Date fromString: 'April 23, 3048') asMonth asDate printString
>
>answers "1 April 3048"; but
>
>    (Date fromString: 'April 23, 3048') asYear asDate printString
>
>answers "23 April 3048" instead of the analogous "1 January 3048".
>
>Seems to me like you should consider filing the bug report. Cheers!
>
>--Tom Phoenix
>

_________________________________________________________________
Share your latest news with your friends with the Windows Live Spaces 
friends module. 
http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mk




More information about the Squeak-dev mailing list