Skip to content

Issue #2584 : Add Calculator conversions between JDE Julian and ISO dates - #8257

Open
mattcasters wants to merge 1 commit into
apache:mainfrom
mattcasters:issue-2584
Open

Issue #2584 : Add Calculator conversions between JDE Julian and ISO dates#8257
mattcasters wants to merge 1 commit into
apache:mainfrom
mattcasters:issue-2584

Conversation

@mattcasters

Copy link
Copy Markdown
Contributor

Fixes #2584

The Calculator transform can convert JD Edwards Julian dates (CYYDDD) to and from Hop dates, so this no longer needs a JavaScript workaround.

Two new calculations appear in the Calculator Calculation dropdown:

  • Date A to JDE Julian (CYYDDD) (DATE_TO_JDE_JULIAN) → Integer
  • JDE Julian A (CYYDDD) to Date (JDE_JULIAN_TO_DATE) → Date

CYYDDD matches the sample from the issue:

  • C = century relative to 1900 (0 = 1900–1999, 1 = 2000–2099)
  • YY = two-digit year
  • DDD = day of year (001366)

Examples: 95001 is 1995-01-01, 109001 is 2009-01-01, 111013 is 2011-01-13. Five-digit values such as 95001 are accepted. Julian input can be Integer, Number, or String.

Years before 1900 and invalid day-of-year values raise an error.

Also includes user-manual entries, sample pipeline calculator-jde-julian.hpl, unit tests, and an integration test.

Calculator module tests and apache-rat:check passed locally. Full mvn clean install apache-rat:check was not run locally.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Calculator transform: Add feature to convert to and from Julian Dates to ISO dates

1 participant