[Newbies] Aida 6.8 on Squeak 4.6

stes@PANDORA.BE stes at telenet.be
Sun Dec 20 14:43:36 UTC 2020


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


David T. Lewis wrote:

> Yes, your solution is correct, and I would prefer your implementation
> over the method quoted above for any version of Squeak.

> On older versions of Squeak, the result might not have time zone offset
> that you expect, so check for that. But the magnitude will be correct
> in any case. 

Perhaps there are reasons to use an implementation that is not defined,
in terms of fromSeconds:

One of the reasons could be the time zone as you indicate.

Another may be the resolution (precision) of the time.

I guess that it makes more sense to define fromSeconds: in terms of
fromMilliseconds:  rather than the reverse which I'm doing here.


In any case, a Swazoo implementation could perhaps use different 
implementations in the case of Squeak 4.6 and in the case of Squeak 5/6.

It could use something like a check to see whether self respondsTo:
localOffsetSeconds and if not use the implementation in terms of fromSeconds:


David Stes

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJf32LsAAoJEAwpOKXMq1Ma+/UH/3QvJh5Zs9HdcbIRruZh0gOv
SjyNm1FVoQdMqH7BWpemr2Oh0r+dz7IEXJi0VnSejZ8RIfT+fJlvtvS4MWcFRQDb
+7A4Txme+8ZrIl26cfgWYGPC0vH73Hic2S9ShLGhlIP5esCYpyVJrOLDpCNqXhY5
hSHXgIe+CTk1Msn87dWLf/9PSHjESqmVtaAK52c/g0AY/qpRxLooYsBzyiIfeRin
oNEm1Ou+sK5b1mF74IV2YkRRRupPx+c1E1vQN1+KRfFR1nO15maXsb0iXvCq2u75
dk2+7lepsCgmIcaT7dGjLojpsWdgNrLNfLFG5xUWJAdIAOfJ48KPVTQd5n0bysE=
=Zd8X
-----END PGP SIGNATURE-----


More information about the Beginners mailing list