On 4/7/07, Brian Schott <[EMAIL PROTECTED]> wrote:
        Person A's birthday is Feb 5th
        Person B's birthday is Sep 5th

        Their birtday's are 5 or 7 months apart depending on
something (which I can't quite express); and how can this be
represented/computed in code?

Is it not the difference A-B or B-A modulo 12 (months per year)?
If A=2 for February, and B=9 for September, then
  12|A-B
5
  12|B-A
7
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to