ICU-4383 support for Ethiopic and Coptic Calendars

X-SVN-Rev: 17872
This commit is contained in:
Doug Felt 2005-06-13 21:11:22 +00:00
parent a4792b7bb6
commit f8e9992627
2 changed files with 18 additions and 0 deletions

View File

@ -145,5 +145,14 @@ public final class CopticCalendar extends CECalendar
public static Integer[] getDateFromJD(int julianDay) {
return getDateFromJD(julianDay, JD_EPOCH_OFFSET);
}
/**
* Return the current Calendar type.
* @return type of calendar (gregorian, etc.)
* @internal ICU 3.4
*/
public String getType() {
return "coptic";
}
}

View File

@ -164,5 +164,14 @@ public final class EthiopicCalendar extends CECalendar
public boolean isAmeteAlemEra() {
return this.jdEpochOffset == JD_EPOCH_OFFSET_AMETE_ALEM;
}
/**
* Return the current Calendar type.
* @return type of calendar (gregorian, etc.)
* @internal ICU 3.4
*/
public String getType() {
return "ethiopic";
}
}