<div dir="ltr"><div>Sorry, Otto. #copy will NOT do it. I misread my results.</div><div><br></div><div>I suggest you create an e.g. #normalized method on the various original classes and on their Small* subclasses and on Object. Object and the Small* classes would answer self. The implementation on DateAndTime, etc.would use the instance creation API to create a new instance (which would turn out to be the special OOP encoded object). Replace the instance if #normalized gives you a different object, leave it alone if it answers the original object.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 1, 2022 at 9:32 AM Otto Behrens <<a href="mailto:otto@finworks.biz">otto@finworks.biz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Ha! Thanks a lot Richard</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 01 Sep 2022, 18:23 Richard Sargent, <<a href="mailto:richard.sargent@gemtalksystems.com" target="_blank">richard.sargent@gemtalksystems.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 1, 2022 at 5:18 AM Otto Behrens via GemStone-Smalltalk <<a href="mailto:gemstone-smalltalk@lists.gemtalksystems.com" rel="noreferrer" target="_blank">gemstone-smalltalk@lists.gemtalksystems.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>We are upgrading to GS 3.6.x and would like to convert our Date objects to SmallDate and DateAndTime objects to SmallDateAndTime. What would be an efficient way to do this? I reckon I will have to hunt for the most commonly used places where they are used and then just convert.</div></div></blockquote><div><br></div><div>Repository>>allReferencesToInstancesOfClasses: can be used to find the referencing objects. <br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>What would be the best methods to use to create a new SmallDate from a Date and a SmallDateAndTime from a DateAndTime?</div></div></blockquote><div><br></div><div>
Sending #copy to the old DateAndTime should answer a SmallDateAndTime. <br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>Thanks<br clear="all"><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><table style="color:rgb(0,0,0);font-family:Times;font-size:medium" width="600" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td width="400" valign="bottom"><p style="margin:0px;padding:0px"><span style="font-size:18px;color:rgb(146,148,151);font-family:Calibri,sans-serif;font-weight:700">Otto Behrens</span><br></p><p style="font-size:18px;font-weight:700;color:rgb(146,148,151);font-family:Calibri,sans-serif;margin:0px;padding:0px"><span style="font-size:14px;font-weight:300;margin:0px;padding:0px">+27 82 809 2375</span></p></td><td width="200" valign="middle"><img src="https://www.finworks.biz/signature/finworks-signature-logo.png" alt="FINWorks" style="display: block; border: 0px none; width: 200px; height: 38px; margin: 0px; padding: 0px;" width="200" height="38"></td></tr></tbody></table><table style="color:rgb(0,0,0);font-family:Times;font-size:medium" width="600" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td height="5"></td></tr></tbody></table><table style="color:rgb(0,0,0);font-family:Times;font-size:medium;border-bottom:1px solid rgb(200,28,36)" width="600" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td height="15"></td></tr></tbody></table><table style="color:rgb(0,0,0);font-family:Times;font-size:medium" width="600" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td height="20"></td></tr></tbody></table><table style="color:rgb(0,0,0);font-family:Times;font-size:medium" width="600" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="display:inline-block" width="15" valign="top"><a href="http://za.linkedin.com/in/waltherbehrens" style="color:rgb(17,85,204)" rel="noreferrer" target="_blank"><img src="https://www.finworks.biz/signature/finworks-linkedin-logo.png" alt="FINWorks" style="display: inline-block; border: 0px none; width: 15px; height: 15px; margin-top: 1.5px; padding: 0px;" width="15" height="15"></a></td><td style="display:inline-block" width="250" valign="top"><a href="http://www.finworks.biz/" style="color:rgb(200,28,36);font-family:Calibri,sans-serif;margin-left:10px;margin-top:0px;padding-top:0px;font-size:11pt;display:inline-block" rel="noreferrer" target="_blank">www.finworks.biz</a></td></tr></tbody></table><table style="color:rgb(0,0,0);font-family:Times;font-size:medium" width="600" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td height="10"></td></tr></tbody></table><table style="color:rgb(0,0,0);font-family:Times;font-size:medium" width="600" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td><p style="font-size:10px;color:rgb(146,148,151);font-family:Calibri,sans-serif;text-align:justify">Disclaimer & Confidentiality Note: This email is intended solely for the use of the individual or entity named above as it may contain information that is confidential and privileged. If you are not the intended recipient, be advised that any dissemination, distribution or copying of this email is strictly prohibited. FINWorks cannot be held liable by any person other than the addressee in respect of any opinions, conclusions, advice or other information contained in this email.</p></td></tr></tbody></table></div></div></div></div></div></div></div>
_______________________________________________<br>
GemStone-Smalltalk mailing list<br>
<a href="mailto:GemStone-Smalltalk@lists.gemtalksystems.com" rel="noreferrer" target="_blank">GemStone-Smalltalk@lists.gemtalksystems.com</a><br>
<a href="https://lists.gemtalksystems.com/mailman/listinfo/gemstone-smalltalk" rel="noreferrer noreferrer" target="_blank">https://lists.gemtalksystems.com/mailman/listinfo/gemstone-smalltalk</a><br>
</blockquote></div></div>
</blockquote></div>
</blockquote></div>