1 7 package com.ibm.icu.util; 8 9 import java.util.Date ; 10 import java.util.Locale ; 11 12 23 public final class CopticCalendar extends CECalendar 24 { 25 private static final long serialVersionUID = 5903818751846742911L; 27 28 34 public static final int TOUT = 0; 35 36 42 public static final int BABA = 1; 43 44 50 public static final int HATOR = 2; 51 52 58 public static final int KIAHK = 3; 59 60 66 public static final int TOBA = 4; 67 68 74 public static final int AMSHIR = 5; 75 76 82 public static final int BARAMHAT = 6; 83 84 90 public static final int BARAMOUDA = 7; 91 92 98 public static final int BASHANS = 8; 99 100 106 public static final int PAONA = 9; 107 108 114 public static final int EPEP = 10; 115 116 122 public static final int MESRA = 11; 123 124 132 public static final int NASIE = 12; 133 134 private static final int JD_EPOCH_OFFSET = 1824665; 135 136 { 138 jdEpochOffset = JD_EPOCH_OFFSET; 139 } 140 141 148 public CopticCalendar() { 149 super(); 150 } 151 152 161 public CopticCalendar(TimeZone zone) { 162 super(zone); 163 } 164 165 173 public CopticCalendar(Locale aLocale) { 174 super(aLocale); 175 } 176 177 186 public CopticCalendar(ULocale locale) { 187 super(locale); 188 } 189 190 200 public CopticCalendar(TimeZone zone, Locale aLocale) { 201 super(zone, aLocale); 202 } 203 204 214 public CopticCalendar(TimeZone zone, ULocale locale) { 215 super(zone, locale); 216 } 217 218 230 public CopticCalendar(int year, int month, int date) { 231 super(year, month, date); 232 } 233 234 243 public CopticCalendar(Date date) { 244 super(date); 245 } 246 247 262 public CopticCalendar(int year, int month, int date, int hour, 263 int minute, int second) { 264 super(year, month, date, hour, minute, second); 265 } 266 267 277 public static int copticToJD(long year, int month, int date) { 278 return ceToJD(year, month, date, JD_EPOCH_OFFSET); 279 } 280 281 285 public static Integer [] getDateFromJD(int julianDay) { 286 return getDateFromJD(julianDay, JD_EPOCH_OFFSET); 287 } 288 289 295 public String getType() { 296 return "coptic"; 297 } 298 } 299 300 | Popular Tags |