[squeak-dev] Testing membership in a Set of Date objects

Tim Johnson digit at sonic.net
Sat Oct 20 01:13:10 UTC 2018



> On Oct 19, 2018, at 10:52 AM, Chris Cunningham <cunningham.cb at gmail.com> wrote:
> 
> (in a Workspace)
> | dates |
> dates := Set newFrom: ( { Date yesterday. Date tomorrow.  DateAndTime now asDate } collect: #stripTimezone ).
> dates includes: (Date year: 2018 month: 10 day: 19). "true"
> dates asOrderedCollection includes: (Date year: 2018 month: 10 day: 19). "true"
> 
> Would it be convenient for you to try out the proposed Chronology fix in your case (with or without the #stripTimezone), and report back if this works well for you?  I'd like to make dates work like we all think they should.

Hi Chris,

Thanks to you and Chris M. and company.  I was excited to try this out today but got sucked into a spinning vortex of unexpected messes.

It seemed in a separate thread that folks might be leaning toward crafting a different solution at the moment...?

In any case, my project makes heavy use of Timespan, DateAndTime, and Date, so I believe it will be a good test subject.  My working image stayed at work so I won't be returning to it until Monday, and it held abundant data to test with.  But I did push my project up to GitHub, and as such could try it out over the weekend – I'll just be missing all the data.

Best,
Tim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20181019/50fad1a4/attachment.html>


More information about the Squeak-dev mailing list