[BUG] Chronology Package - Duration and Schedule was: Re: [ANN]Chronology Package on Squeak Map

Ingo Hohmann uysl0l402 at sneakemail.com
Wed Sep 10 19:07:33 UTC 2003


Hhhhmmmmm, seems I've spend too much time in front of the computer ...

Ingo Hohmann wrote:
> Hi Brent,
> 
> I found some problems with your Chronology package, while trying some of 
> the examples on the swiki:
> 
>  From the Schedule examples:
> "Find the first Saturday and set its time to 20h30"
> sat := Year current asMonth dates detect: [ :d | d dayOfWeekName = 
> #Saturday ].
> --> 6 September 2003
> 
> sat := sat start + (Duration hours: 20.5).
> --> 2003-09-06T20:30:00+00:00
> 
> I don't believe the date should be changing, or does it?

OK, the dates don't change ... but,

Year current asMonth
Year current asWeek
Year current asDate

should return something around january, no?

> Further on there is no Duration class>>day defined.
 >
> 
> Kind regards,
> 
> Ingo




More information about the Squeak-dev mailing list