Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-16520

Std.Date.MonthsBetween anomalous results

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.0
    • Component/s: ECL Standard Library
    • Labels:
      None

      Description

      IMPORT Std.Date;
      OUTPUT(Date.MonthsBetween(20160331, 20160930), NAMED('Mar_Sep'));
      OUTPUT(Date.MonthsBetween(20160430, 20161031), NAMED('Apr_Oct'));

      shows 5 and 6 respectively. Not really a defensible behavior. The algorithm needs to be adjusted to take end of month into account.

        Attachments

          Activity

            People

            • Assignee:
              dcamper Dan S. Camper
              Reporter:
              johnholt John Holt
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: