[squeak-dev] Date[And]Time fractional seconds printing

Casey Ransberger casey.obrien.r at gmail.com
Thu Aug 19 02:40:17 UTC 2010


I wondered what the deal was with that when I was playing with Date in the
process of poking at the class comment.

On Wed, Aug 18, 2010 at 4:30 PM, Andreas Raab <andreas.raab at gmx.de> wrote:

> Hi -
>
> I've noticed a while ago that at some point in the evolution of Squeak both
> Time as well as DateAndTime had "nano seconds" added. Unfortunately, the
> default printing of both of these classes leads to some extremely strange
> effects now. For example, where historically something like
>
>        DateAndTime now asUTC.
>
> would print "2010-08-18T23:23:54+00:00" it now prints silly nonsense like
> this: "2010-08-18T23:17:49.888000007+00:00" (I just found this in one of our
> log files). Similarly, if you evaluate "Time now" you get results like
> "4:22:07.369 pm".
>
> In short, the question is: Is there any point whatsoever to print
> fractional seconds by default? It seems to me that if you need to print
> fractional seconds you might as well use some other selector and leave
> #printOn: with the historical behavior of not printing fractional seconds.
>
> Anyone in favor of preserving fractional seconds by default please raise
> your hand and provide some arguments why such behavior would be preferable.
>
> Cheers,
>  - Andreas
>
>


-- 
Casey Ransberger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100818/b10896b5/attachment.htm


More information about the Squeak-dev mailing list