3600 seconds seconds = 0 which means that this is a number of seconds in the hour:min:seconds decomposition Now it looks to me that the method comment is wrong seconds "Answer the number of seconds the receiver represents." ^ (seconds rem: SecondsInMinute) 3600 seconds asSeconds = 3600 is what is working may be (Duration seconds: 3600) would be better To me there is something conceptually bogus with such definition of minutes and seconds. (Duration seconds: 3600) minutes = 0 (Duration seconds: 3600) seconds = 0 Stef
are you sure you wanted pharo-users or pharo-dev? On Mon, Aug 23, 2010 at 6:04 PM, Stéphane Ducasse <stephane.ducasse@inria.fr
wrote:
3600 seconds seconds = 0 which means that this is a number of seconds in the hour:min:seconds decomposition
Now it looks to me that the method comment is wrong
seconds "Answer the number of seconds the receiver represents."
^ (seconds rem: SecondsInMinute)
3600 seconds asSeconds = 3600 is what is working
may be (Duration seconds: 3600) would be better
To me there is something conceptually bogus with such definition of minutes and seconds. (Duration seconds: 3600) minutes = 0 (Duration seconds: 3600) seconds = 0
Stef
_______________________________________________ Pharo-users mailing list Pharo-users@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
participants (2)
-
Mariano Martinez Peck -
Stéphane Ducasse