we should check our ugly standard because apparently seconds comes from ANSI. Stef On Aug 24, 2010, at 12:45 PM, Guillermo Polito wrote:
On Tue, Aug 24, 2010 at 7:27 AM, 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
yeap
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
that's the same you remarked, the decomposition of the duration :). Maybe there are better names for the decomposition... Or better comments.
I'm looking that Duration also lacks methods to get the total hours and minutes the duration represents (Which is the behavior you expected, didn't you?). Something like
(Duration seconds: 3600) totalMinutes = 60 (Duration seconds: 3600) totalSeconds = 3600
But, what about something like
(Duration seconds: 3601) totalMinutes = (3601/60) ??
Guille
Stef
_______________________________________________ Pharo-users mailing list Pharo-users@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project