public static void JulianDayToLocal(SPCalendarType calType, int jDay, IntlDate id) { SimpleDate simpleDate = new SimpleDate(0, 0, 0); SPIntlCal.GetLocalCalendar(calType).JulianDayToDate(jDay, ref simpleDate, 0, 0); id.Init(simpleDate.Year, simpleDate.Month, simpleDate.Day, simpleDate.Era, calType); }
public static bool IsCalendarSupported(SPCalendarType calType) { try { SPIntlCal.GetLocalCalendar(calType); return(true); } catch (Exception) { } return(false); }
public static int LocalToJulianDay(SPCalendarType calType, ref SimpleDate di, int iAdvance, int jDayCurrent) { return(SPIntlCal.GetLocalCalendar(calType).DateToJulianDay(ref di, iAdvance, jDayCurrent)); }
public static int LocalToJulianDay(SPCalendarType calType, ref SimpleDate di) { return(SPIntlCal.GetLocalCalendar(calType).DateToJulianDay(ref di, 0, 0)); }
public static bool IsSupportedLocalJulianDay(SPCalendarType calType, int jDay) { return(SPIntlCal.GetLocalCalendar(calType).IsSupportedJulianDay(jDay)); }
public static bool IsLocalDateValid(SPCalendarType calType, ref SimpleDate di, int iAdvance, int jDayCurrent) { return(SPIntlCal.GetLocalCalendar(calType).IsDateValid(ref di, iAdvance, jDayCurrent)); }
public static bool IsLocalDateValid(SPCalendarType calType, ref SimpleDate di) { return(SPIntlCal.GetLocalCalendar(calType).IsDateValid(ref di, 0, 0)); }
public static bool IsSupportedLocalDate(SPCalendarType calType, ref SimpleDate di) { return(SPIntlCal.GetLocalCalendar(calType).IsSupportedDate(ref di)); }
public static bool IsSupportedLocalYear(SPCalendarType calType, int year) { return(SPIntlCal.GetLocalCalendar(calType).IsSupportedYear(year)); }
public static int MonthsInLocalYear(SPCalendarType calType, ref SimpleDate di) { return(SPIntlCal.GetLocalCalendar(calType).MonthsInYear(ref di)); }
public static int DaysInLocalMonth(SPCalendarType calType, ref SimpleDate di, int iAdvance) { return(SPIntlCal.GetLocalCalendar(calType).DaysInMonth(ref di, iAdvance)); }
public static bool IsLocalYearLeap(SPCalendarType calType, int year) { return(SPIntlCal.GetLocalCalendar(calType).IsYearLeap(year)); }
public static int GetEraJulianDay(SPCalendarType calType, int era) { return(SPIntlCal.GetLocalCalendar(calType).GetEraJulianDay(era)); }
public static int EraOffset(SPCalendarType calType, int era) { return(SPIntlCal.GetLocalCalendar(calType).GetEraOffset(era)); }
public static int LocalToJulianDay(SPCalendarType calType, IntlDate id) { SimpleDate simpleDate = new SimpleDate(id.Year, id.Month, id.Day, id.Era); return(SPIntlCal.GetLocalCalendar(calType).DateToJulianDay(ref simpleDate, 0, 0)); }
public static bool IsSupportedLocalMonth(SPCalendarType calType, int year, int month) { return(SPIntlCal.GetLocalCalendar(calType).IsSupportedMonth(year, month)); }
public static void JulianDayToLocal(SPCalendarType calType, int jDay, ref SimpleDate di) { SPIntlCal.GetLocalCalendar(calType).JulianDayToDate(jDay, ref di, 0, 0); }
public static void JulianDayToLocal(SPCalendarType calType, int jDay, ref SimpleDate di, int iAdvance, int jDayCurrent) { SPIntlCal.GetLocalCalendar(calType).JulianDayToDate(jDay, ref di, iAdvance, jDayCurrent); }