<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div>Lots of database packages rely on variants of that class : TimeStamp and Timestamp...  Some packages even provide their own version !<br></div><div><br></div><div>It's always been a mess!<br><div><br></div><div><br></div><div class="ydpa8116e74signature">----------------- <br>Benoît St-Jean <br>Yahoo! Messenger: bstjean
 <br>Twitter: @BenLeChialeux
 <br>Pinterest: benoitstjean
 <br>Instagram: Chef_Benito<br>IRC: lamneth
 <br>Blogue: endormitoire.wordpress.com
 <br>"A standpoint is an intellectual horizon of radius zero".  (A. Einstein)</div></div>
            <div><br></div><div><br></div>
            
            <div id="ydpb8f3864yahoo_quoted_2948662324" class="ydpb8f3864yahoo_quoted">
                <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                    
                    <div>
                        On Tuesday, April 3, 2018, 9:14:20 a.m. EDT, Levente Uzonyi <leves@caesar.elte.hu> wrote:
                    </div>
                    <div><br></div>
                    <div><br></div>
                    <div><div dir="ltr">Hi Eliot,<br clear="none"><br clear="none">On Mon, 2 Apr 2018, Eliot Miranda wrote:<br clear="none"><br clear="none">> Hi Levente,<br clear="none">><br clear="none">>> On Apr 2, 2018, at 8:59 AM, Levente Uzonyi <<a shape="rect" href="mailto:leves@caesar.elte.hu" rel="nofollow" target="_blank">leves@caesar.elte.hu</a>> wrote:<br clear="none">>> <br clear="none">>> Don't use TimeStamp.<br clear="none">><br clear="none">> Can we deprecate it then?<br clear="none"><br clear="none">Sure, but there are still users in the image. Mainly Monticello, SqueakMap <br clear="none">Client and SUnit.<br clear="none">It will take some time to go through them and properly rewrite the code.<div class="ydpb8f3864yqt8919206516" id="ydpb8f3864yqtfd00037"><br clear="none"><br clear="none">Levente<br clear="none"><br clear="none">><br clear="none">>> I see several issues which break your snippet:<br clear="none">>> 1) #printOn: and #storeOn: ignore time zone information (offset).<br clear="none">>> 2) Class side #readFrom: ignores time zone information (offset).<br clear="none">>> 3) Class side #readFrom: can not fully parse the output of #storeOn:. It seems to only work by accident.<br clear="none">>> 4) It's a subclass of DateAndTime, but it seems to add noting generally useful. Based on the class comment, it has the same purpose as DateAndTime, but that's not the case.<br clear="none">>> <br clear="none">>> So, use DateAndTime instead:<br clear="none">>> <br clear="none">>> | t1 t2 s |<br clear="none">>> t1 := DateAndTime now.<br clear="none">>> s := String streamContents: [:stream | t1 storeOn: stream ].<br clear="none">>> t2 := Compiler evaluate: s.<br clear="none">>> { t1 offset. t2 offset. t1 = t2 } "==> {0:02:00:00 . 0:02:00:00 . true}"<br clear="none">>> <br clear="none">>> Levente<br clear="none">>> <br clear="none">>>> On Mon, 2 Apr 2018, Tim Johnson wrote:<br clear="none">>>> <br clear="none">>>> Hi all,<br clear="none">>>> I noticed the following:<br clear="none">>>> | t1 t2 s | <br clear="none">>>> t1 := TimeStamp now.<br clear="none">>>> s := String streamContents: [:stream | t1 storeOn: stream ].<br clear="none">>>> t2 := TimeStamp readFrom: s readStream.<br clear="none">>>> { t1 offset.  t2 offset.  t1 = t2 } printIt ->  {-0:07:00:00 . 0:00:00:00 . false}<br clear="none">>>> A web search turned up this thread from 2017:<br clear="none">>>> <a shape="rect" href="http://forum.world.st/DateAndTime-offset-just-bit-me-td4938463.html" rel="nofollow" target="_blank">http://forum.world.st/DateAndTime-offset-just-bit-me-td4938463.html</a><br clear="none">>>> I’m wondering if there has been any resolution or if the situation is the same:  I should try the fixes from UTCDateAndTime.<br clear="none">>>> Happy to write a test if this is worth the effort.<br clear="none">>>> Thanks,<br clear="none">>>> Tim<br clear="none">>></div></div><div class="ydpb8f3864yqt8919206516" id="ydpb8f3864yqtfd85944"><br clear="none"></div></div>
                </div>
            </div></div></body></html>