[squeak-dev] trunk thinks its tomorrow

tim Rowledge tim at rowledge.org
Thu Feb 18 01:13:05 UTC 2016

We can see the primitives involved with this do it -
 {SystemNavigation default browseMessageList: #(
'Time class primMicrosecondClock 117' 
'Time class primMillisecondClock 135’ 
'Time class eventMillisecondClock 135’ 
'Time class primPosixMicrosecondClockWithOffset 117’ 
'Time class primUTCMicrosecondClock 240’ 
'Time class localMicrosecondClock 241’ 
'Time class utcMicrosecondClock 240’ 
'Time class primSecondsClock 137’ 
'Time class primMillisecondClockMask 117’ 
'Time class primLocalMicrosecondClock 241') name: 'time prims’}

a) primMicrosecondClock is not sent in a 5.0 image and seems to only be implemented in a plain interpreter VM.
b) primMillisecondClock/135 is not sent in a 5.0 image
c) eventMillisecondClock/135 is used for the faked-up events required for double-click handling
d) primPosixMicrosecondClockWithOffset is not sent in 5.0
e) primUTCMicrosecondClock/240 is not sent in 5.0 - would return uSec value in raw
f) localMicrosecondClock/241 is used in 5.0 in particular from Time now (as per the ClockMorph)
g) utcMicrosecondClock/240 is used in 5.0 for Delays and timing type cases
h) primSecondsClock/137 isn’t used in 5.0
i) primMillisecondClockMask isn’t used in 5.0
j) primLocalMicrosecondClock/241 isn’t used in 5.0

So we have quite a collection of mixedup terminology and unused methods to clear up!

Looking at it from the prims point of view -

Prim 135 is needed in order to provide the same timebase as the events coming in, so we can’t drop that, and it affects nothing else.

Prim 240 is for no-TZ microseconds and is used in Delay etc but crucially as part of DateAndTime>now which is why we are having a problem in the latest updated 5.0 with no TZ/Locale being used.
Prim 241 is used by Time now etc and includes the TZ offset, which is why Time now returns correct wall-clock time.

The others are no longer used and could be removed except for the primPosixMicrosecondClockWithOffset which we ought to make use of so that the TZ is reported back.

tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Useful Latin Phrases:- Quantum materiae materietur marmota monax si marmota monax materiam possit materiari? = How much wood would a woodchuck chuck if a woodchuck could chuck wood?

More information about the Squeak-dev mailing list