[squeak-dev] How to have a fast and usable Date? (was: new Bug in Locale)

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Thu Feb 2 21:28:31 UTC 2012

2012/2/2 Chris Muller <asqueaker at gmail.com>:
> On Thu, Feb 2, 2012 at 2:30 AM, Nicolas Cellier
> <nicolas.cellier.aka.nice at gmail.com> wrote:
>> I'm now inspecting implementation, and indeed, Date is an interval
>> taking start time into account.
>> So you can still compare the Date printString... (quite slow).
> Not good enough, because having TZ-specific dates in any system of
> consequence is a scourge of molasses.
> Best to strip all Dates (NOT DateAndTimes) of their timezone.
>> I read that makeUTC is like asUTC but it's not.
>> The former just erase the offset, the later does remove the offset from time.
>> t := DateAndTime year: 2012 month: 2 day: 1 hour: 9 minute: 8 second:
>> 23 offset: 2 hours.
>> self deny: t asUTC = t copy makeUTC
> makeUTC was intended solely to purge the molasses for apps that are
> not interested in TZ's.

No problem with that, but the comment shall not tell it's same as asUTC.

More information about the Squeak-dev mailing list