[squeak-dev] Time>addSeconds: ignores nanos ivar value

tim Rowledge tim at rowledge.org
Mon Jul 20 20:08:57 UTC 2020


Time >addSeconds: completely ignores the nanos ivar value and so
Time now -> (say)  12:51:47.418205 pm
send that #addSeconds: 2 -> 12:51:49 pm

Which is incorrect. Actually *fixing* it seems to be a bit more complex than just "add the nanoseconds stuff".

Should #asSeconds be truncating the seconds and ignoring the nanoseconds? That's also an issue for #addTime: and #subtractTime: (wait, no #subtractSeconds: ?)

Chronology-afficonados assemble!

tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Fractured Idiom:- PRO BOZO PUBLICO - Support your local clown




More information about the Squeak-dev mailing list