Parameterize DateTimeFormats.java

Description

The code to do the table http://st.unicode.org/cldr-apps/v#r_datetime/hu// is DateTimeFormats.java. It can be run from the console — once the data is in XML — and is also used to build the charts at http://www.unicode.org/cldr/charts/dev/verify/dates/hu.html (again, from XML), etc.

It is currently only for Gregorian, but a small code change would allow it to generate non-gregorian examples also.

I think making "gregorian" be an Option may suffice for that, in the following lines.

824: DateTimeFormats english = new DateTimeFormats().set(englishFile, "gregorian");
849: DateTimeFormats formats = new DateTimeFormats().set(factory.make(localeID, true), "gregorian");

xpath

None

locale

None

Status

Priority

medium

Assignee

Mark Davis

Reporter

Mark Davis

tracReporter

mark

Reviewer

None

Labels

None

Components

Fix versions

phase

dsub