[ENH]WorldTimeMorph (bug fixed)
Karl Ramberg
karl.ramberg at chello.se
Sat Aug 25 07:14:24 UTC 2001
Do you ever wonder what time it is in Australia when you
are in Sweden. Here is a primitive solution to that problem.
File in this change set. It will download a image of the world,
display it as a morph with vertical lines approximately at
every time zone and the hour at each zone.
The times will probably show up wrong, I did not find general way
for Squeak to tell which zone I live in so
I hardcoded a instance variable.
Solution:
-Look at the morph, locate your approximate location in the
relating to the map. Count the number of vertical lines
to where you are (from left).
-inspect the morph
-write:
self localTimeSone: "<-insert the number of lines here".
self changed.
-select the text and doIt.
Fixed two bugs.
-Draws the timezones more correct.
-Displays houres correctly.
Karl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WorldTimeMorph.st.gz
Type: application/octet-stream
Size: 794 bytes
Desc: Unknown Document
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20010825/6a8f838e/WorldTimeMorph.st.obj
More information about the Squeak-dev
mailing list
|