static private InitEraInfo ( int calID ) : System.Globalization.EraInfo[] | ||
calID | int | |
리턴 | System.Globalization.EraInfo[] |
static TaiwanCalendar() { // Since // Gregorian Year = Era Year + yearOffset // When Gregorian Year 1912 is year 1, so that // 1912 = 1 + yearOffset // So yearOffset = 1911 //m_EraInfo[0] = new EraInfo(1, new DateTime(1912, 1, 1).Ticks, 1911, 1, GregorianCalendar.MaxYear - 1911); m_EraInfo = GregorianCalendarHelper.InitEraInfo(Calendar.CAL_TAIWAN); }
static ThaiBuddhistCalendar() { // Since // Gregorian Year = Era Year + yearOffset // When Gregorian Year 1 is Thai Buddhist year 544, so that // 1 = 544 + yearOffset // So yearOffset = -543 // Gregorian Year 2001 is Thai Buddhist Year 2544. //m_EraInfo[0] = new EraInfo(1, new DateTime(1, 1, 1).Ticks, -543, 544, GregorianCalendar.MaxYear + 543); m_EraInfo = GregorianCalendarHelper.InitEraInfo(Calendar.CAL_THAI); }
static KoreanCalendar() { m_EraInfo = new EraInfo[1]; // Since // Gregorian Year = Era Year + yearOffset // Gregorian Year 1 is Korean year 2334, so that // 1 = 2334 + yearOffset // So yearOffset = -2333 // Gregorian year 2001 is Korean year 4334. //m_EraInfo[0] = new EraInfo(1, new DateTime(1, 1, 1).Ticks, -2333, 2334, GregorianCalendar.MaxYear + 2333); m_EraInfo = GregorianCalendarHelper.InitEraInfo(Calendar.CAL_KOREA); }
// The era value of the current era. static JapaneseCalendar() { m_EraInfo = GregorianCalendarHelper.InitEraInfo(Calendar.CAL_JAPAN); }