[squeak-dev] TimeStamp offsets

David T. Lewis lewis at mail.msen.com
Mon Apr 2 15:52:56 UTC 2018


On Mon, Apr 02, 2018 at 08:26:39AM -0700, Tim Johnson wrote:
> Hi all,
> 
> I noticed the following:
> 
> | t1 t2 s | 
> t1 := TimeStamp now.
> s := String streamContents: [:stream | t1 storeOn: stream ].
> t2 := TimeStamp readFrom: s readStream.
> { t1 offset.  t2 offset.  t1 = t2 } printIt ->  {-0:07:00:00 . 0:00:00:00 . false}
> 
> A web search turned up this thread from 2017:
> 
> http://forum.world.st/DateAndTime-offset-just-bit-me-td4938463.html <http://forum.world.st/DateAndTime-offset-just-bit-me-td4938463.html>
> 
> I???m wondering if there has been any resolution or if the situation is the same:  I should try the fixes from UTCDateAndTime.
> 
> Happy to write a test if this is worth the effort.


Hi Tim,

I would be very happy to see a few people try UTCDateAndTime. I think that
it makes time calculations and local offsets much easier to understand, and
it provides a good performance boost also.

I should warn you that I have not tried loading it fresh into the latest
trunk image in a while, so you may encounter problems. If so I'll fix
them (but not today, I'll be traveling).

Thanks,
Dave



More information about the Squeak-dev mailing list