× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



From: Booth Martin

What bothers me is that dates don't round trip well. Does March 31st
less one month, plus one month, equal March 31st?

Yeah, the non-transitory nature of a "month" is problematic. I like
Francis' pragmatic answer: no invoice due after the 28th. Not practical for
all situations, but a great way to avoid certain complications.

What happens is that you lose a piece of information when you subtract a
month (or add a month) and move from a longer month to a shorter one. When
you say "subtract one month from May 31st", the logical result is April
30th, because we moved from "the end of May" to "the end of April".
However, when you turn around and add a month to April 30th, there are
really two possible outcomes: May 30th or May 31st. It depends on whether
you're treating April 30th as simply the 30th in April, or as the LAST day
in April.

What MIGHT work (but I'm not sure) is a different way to add or subtract
months, in which you measure the number of days from the END of month. For
example, March 29th would map to April 28th, because both are two days from
the end of the month. It's by no means a perfect solution; you just move
the problem to the beginning of the month. May 1st minus one month is April
1st, but April 1st plus one month is May 2nd.

Joe



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.