Hi All,
-- When milliseconds are involved, it seems DateAndTime>>- is not implemented in a way such that: aDateAndTime + (aDuration negated) = aDateAndTime - aDuration. DateAndTime>>- uses Duration>>subtractFromDateAndTime: that doesn't deal with the milliseconds properly. Not all the milliseconds get subtracted. I don't know if I want to go so far as to call this a bug but it is very close. What does everyone else think? Lou You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Administrator
|
Bug!
-- On Tuesday, January 20, 2015 at 10:28:40 AM UTC-8, Louis LaBrunda wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Louis LaBrunda
Hi Lou,
-- Inspecting this code snippet returns true: | dt dur | dt := DateAndTime now. dur := Duration hours: 1. dt + (dur negated) = (dt - dur). What am I missing? Donald [|] On Tuesday, January 20, 2015 at 1:28:40 PM UTC-5, Louis LaBrunda wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
But change it to this and it fails:
-- dur := Duration milliseconds: 1. You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Hi Donald and Wayne,
-- On Thursday, January 22, 2015 at 7:39:16 AM UTC-5, Wayne Johnston wrote:
Wayne beat me to it. Thanks Wayne. As I said in my original post, the problems in in the way Duration>>subtractFromDateAndT Lou You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
OK, I have created case 57263.
-- You guys can take a break anytime you want to. ;-) Thanks, Donald [|] On Thursday, January 22, 2015 at 12:29:29 PM UTC-5, Louis LaBrunda wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Hi Donald,
-- If I may be so presumptuous as to suggest a solution. Because DateAndTime>>- can have a DateAndTime as a parameter, the fix needs to be in Duration>>subtractFromDateAndTime:
Note the changes to the third to last line. Lou On Thursday, January 22, 2015 at 6:52:25 PM UTC-5, Donald MacQueen wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Thanks Lou.
-- Problem reports complete with answers are always welcome! Donald [|] On Friday, January 23, 2015 at 10:18:36 AM UTC-5, Louis LaBrunda wrote:
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/va-smalltalk. For more options, visit https://groups.google.com/d/optout. |
Free forum by Nabble | Edit this page |