Chris,
That is not what I am seeing in Pharo 7:
date1 := Date today.
date2 := Date today translateToUTC.
date1 = date2. "false"
date1 hash = date2 hash. "false"
dictionary := Dictionary new.
dictionary at: date1 put: date1.
dictionary at: date2 put: date2.
(dictionary at: date1) = date1. "tru
Sven Van Caekenberghe-2 wrote
>> the obvious way to introduce it would
>> have been to introduce a new DateInZone class.
Yes, that would have been nice. Especially since IMHO this is the more
common, simple case, and least surprising to new users. I would assume by
the time you're building interna
Hi,
On Tue, Oct 16, 2018 at 1:28 PM Alistair Grant
wrote:
> Hi Petr,
>
> On Tue, 16 Oct 2018 at 21:25, Petr Fischer via Pharo-users
> wrote:
> >
> > My problem - use Dates as Dictionary keys - shortly:
> >
> > d1 := Date today translateToUTC.
> > d2 := Date today.
> >
> > d1 = d2. (true!)
>
> O
Maybe this happened with Squeak version 3.7?
http://wiki.squeak.org/squeak/1871
--Hannes
On 10/17/18, Richard O'Keefe wrote:
> There is an elephant in the room. Historically and in Smalltalks such as
> GNU Smalltalk, Smalltalk/X, my Smalltalk->C system, VisualAge Smalltalk,
> and VisualWOrks,
> On 17 Oct 2018, at 13:07, Richard O'Keefe wrote:
>
> There is an elephant in the room. Historically and in Smalltalks such as
> GNU Smalltalk, Smalltalk/X, my Smalltalk->C system, VisualAge Smalltalk,
> and VisualWOrks, a Date is *not* a TimeSpan and is *not* associated with
> a time zone o
There is an elephant in the room. Historically and in Smalltalks such as
GNU Smalltalk, Smalltalk/X, my Smalltalk->C system, VisualAge Smalltalk,
and VisualWOrks, a Date is *not* a TimeSpan and is *not* associated with
a time zone or a zone offset. It's generally a direct subclass of
Magnitude.
> On 16 Oct 2018, at 22:27, Alistair Grant wrote:
>
> Hi Petr,
>
> On Tue, 16 Oct 2018 at 21:25, Petr Fischer via Pharo-users
> wrote:
>>
>> My problem - use Dates as Dictionary keys - shortly:
>>
>> d1 := Date today translateToUTC.
>> d2 := Date today.
>>
>> d1 = d2. (true!)
>
> Which t
> On 16 Oct 2018, at 19:53, Petr Fischer via Pharo-users
> wrote:
>
>
> From: Petr Fischer
> Subject: Dictionary and Date as keys
> Date: 16 October 2018 at 19:53:40 GMT+2
> To: pharo-users@lists.pharo.org
>
>
> My problem - use Dates as Dictionary keys - shortly:
>
> d1 := Date today tr
Hi Petr,
On Tue, 16 Oct 2018 at 21:25, Petr Fischer via Pharo-users
wrote:
>
> My problem - use Dates as Dictionary keys - shortly:
>
> d1 := Date today translateToUTC.
> d2 := Date today.
>
> d1 = d2. (true!)
Which timezone are you in?
CEDT (UTC+0200) gives false for this.
Date is implemented