<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
Hi Dave --<div><br></div><div>I presume that we did this for backwards compatibility? How much old code do we suspect is there? I would prefer to make #utcOffset: the default in #offset: and maybe offer #offset: as #setRawOffset:?</div><div><br></div><div>Best,</div><div>Marcel</div><div class="mb_sig"></div><blockquote class='history_container' type='cite' style='border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;'>
<p style='color: #AAAAAA; margin-top: 10px;'>Am 24.04.2022 19:43:02 schrieb commits@source.squeak.org <commits@source.squeak.org>:</p><div style='font-family:Arial,Helvetica,sans-serif'>David T. Lewis uploaded a new version of Chronology-Core to project The Trunk:<br>http://source.squeak.org/trunk/Chronology-Core-dtl.79.mcz<br><br>==================== Summary ====================<br><br>Name: Chronology-Core-dtl.79<br>Author: dtl<br>Time: 24 April 2022, 1:42:51.885752 pm<br>UUID: 6f7605b0-2d71-404a-bb89-0a18345f875a<br>Ancestors: Chronology-Core-mt.78<br><br>Provide a better method comment for DateAndTime>>offset: to address a long-standing #FIXME flag. We now have #utcOffset: to complement #offset: so a better explanation of the behavior is sufficient to clarify the difference.<br><br>=============== Diff against Chronology-Core-mt.78 ===============<br><br>Item was changed:<br> ----- Method: DateAndTime>>offset: (in category 'ansi protocol') -----<br> offset: anOffset<br>+ "Answer a DateAndTime for a different time zone offset that has the same<br>+ year, month, day, hour, minute, and second as this instance, and with<br>+ printString that matches except for time zone offset."<br> <br>- "Answer a <dateandtime> equivalent to the receiver but with its local time <br>- being offset from UTC by offset."<br>- <br> | newOffset newMicros |<br>- self flag: #FIXME. "check the definition of this and of #utcOffset:"<br> newOffset := anOffset asDuration asSeconds.<br> newMicros := localOffsetSeconds - newOffset * 1000000 + utcMicroseconds.<br> ^ self class utcMicroseconds: newMicros offset: newOffset<br> !<br><br><br></dateandtime></div></blockquote>
</div></body>