[GemStone-Smalltalk] migrating to SmallDate and SmallDateAndTime

Richard Sargent richard.sargent at gemtalksystems.com
Thu Sep 1 09:23:47 PDT 2022


On Thu, Sep 1, 2022 at 5:18 AM Otto Behrens via GemStone-Smalltalk <
gemstone-smalltalk at lists.gemtalksystems.com> wrote:

> Hi,
>
> 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.
>

Repository>>allReferencesToInstancesOfClasses: can be used to find the
referencing objects.


> What would be the best methods to use to create a new SmallDate from a
> Date and a SmallDateAndTime from a DateAndTime?
>

Sending #copy to the old DateAndTime should answer a SmallDateAndTime.


> Thanks
>
> Otto Behrens
>
> +27 82 809 2375
> [image: FINWorks]
> [image: FINWorks] <http://za.linkedin.com/in/waltherbehrens>
> www.finworks.biz
>
> 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.
> _______________________________________________
> GemStone-Smalltalk mailing list
> GemStone-Smalltalk at lists.gemtalksystems.com
> https://lists.gemtalksystems.com/mailman/listinfo/gemstone-smalltalk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/archives/gemstone-smalltalk/attachments/20220901/1fadb170/attachment.htm>


More information about the GemStone-Smalltalk mailing list