Hi guys
I have to fix my house :) so I could not continue to kill this one on Unstable 11321 '-1199-01-05T20:33:14.321-05:00' asDateAndTime printString -> '-1199-01-05T20:33:(14321/1000).321-05:00' STef _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
the problem seems to be due to
(Duration seconds: 73994 nanoSeconds: 321000000) seconds which returns a fraction In pharo Duration>>seconds "Answer the number of seconds the receiver represents." ^ (seconds rem: SecondsInMinute) + (nanos / NanosInSecond) In Squeak>>seconds "Answer the number of seconds the receiver represents." ^seconds rem: SecondsInMinute Now I have the impression that the squeak version is right What do you think? Stef On Apr 24, 2010, at 4:38 PM, stephane ducasse wrote: > Hi guys > > I have to fix my house :) so I could not continue to kill this one on Unstable 11321 > > '-1199-01-05T20:33:14.321-05:00' asDateAndTime printString > -> '-1199-01-05T20:33:(14321/1000).321-05:00' > > STef > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
http://code.google.com/p/pharo/issues/detail?id=2352
I proposed a fix and would loved to have feedback. Stef On Apr 24, 2010, at 7:51 PM, Stéphane Ducasse wrote: > the problem seems to be due to > (Duration seconds: 73994 nanoSeconds: 321000000) seconds > which returns a fraction > > > In pharo > > Duration>>seconds > "Answer the number of seconds the receiver represents." > > ^ (seconds rem: SecondsInMinute) + (nanos / NanosInSecond) > > > In Squeak>>seconds > "Answer the number of seconds the receiver represents." > > ^seconds rem: SecondsInMinute > > > Now I have the impression that the squeak version is right > > What do you think? > > Stef > > > On Apr 24, 2010, at 4:38 PM, stephane ducasse wrote: > >> Hi guys >> >> I have to fix my house :) so I could not continue to kill this one on Unstable 11321 >> >> '-1199-01-05T20:33:14.321-05:00' asDateAndTime printString >> -> '-1199-01-05T20:33:(14321/1000).321-05:00' >> >> STef >> _______________________________________________ >> Pharo-project mailing list >> [hidden email] >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
I commented on the website of google.
Alexandre On 24 Apr 2010, at 13:59, Stéphane Ducasse wrote: > http://code.google.com/p/pharo/issues/detail?id=2352 > > I proposed a fix and would loved to have feedback. > > Stef > > On Apr 24, 2010, at 7:51 PM, Stéphane Ducasse wrote: > >> the problem seems to be due to >> (Duration seconds: 73994 nanoSeconds: 321000000) seconds >> which returns a fraction >> >> >> In pharo >> >> Duration>>seconds >> "Answer the number of seconds the receiver represents." >> >> ^ (seconds rem: SecondsInMinute) + (nanos / NanosInSecond) >> >> >> In Squeak>>seconds >> "Answer the number of seconds the receiver represents." >> >> ^seconds rem: SecondsInMinute >> >> >> Now I have the impression that the squeak version is right >> >> What do you think? >> >> Stef >> >> >> On Apr 24, 2010, at 4:38 PM, stephane ducasse wrote: >> >>> Hi guys >>> >>> I have to fix my house :) so I could not continue to kill this one >>> on Unstable 11321 >>> >>> '-1199-01-05T20:33:14.321-05:00' asDateAndTime printString >>> -> '-1199-01-05T20:33:(14321/1000).321-05:00' >>> >>> STef >>> _______________________________________________ >>> Pharo-project mailing list >>> [hidden email] >>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >> >> >> _______________________________________________ >> Pharo-project mailing list >> [hidden email] >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Free forum by Nabble | Edit this page |