[Cuis-dev] bug in date algebra

Nicola Mingotti nmingotti at gmail.com
Mon Aug 16 00:03:40 PDT 2021


Apologies Juan !

I must have made a mistake, just re-tested and it is all fine.

------------
d0 _ DateAndTime now.
d1 _ (DateAndTime now) + (Duration days: 5).
dur _ d1 - d0.
dur. " 5:00:00:02.056201 "
dur days. " 5 "
------------

bye
Nicola



On 8/15/21 10:15 PM, Juan Vuletich wrote:
> On 8/15/2021 2:59 PM, Nicola Mingotti via Cuis-dev wrote:
>> d1 _ (DateAndTime now) + (Duration days: 5).
>> d1 class. " DateAndTime "
>> d1. " 2021-08-20T19:53:22.686415+00:00 "
>> dur _ d1 - d0. " 44061:19:53:22.686415 "
>
> And what would d0 be? If d0 is about 5 years before d1, then it looks ok.
>
> Cheers,
> -- 
> Juan Vuletich
> www.cuis-smalltalk.org
> https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
> https://github.com/jvuletich
> https://www.linkedin.com/in/juan-vuletich-75611b3
> @JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210816/9d9c02e0/attachment.htm>


More information about the Cuis-dev mailing list