/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | HebrewCalendar.java | 341 public HebrewCalendar(int year, int month, int date) { in HebrewCalendar() argument 343 this.set(YEAR, year); in HebrewCalendar() 378 public HebrewCalendar(int year, int month, int date, int hour, in HebrewCalendar() argument 382 this.set(YEAR, year); in HebrewCalendar() 434 int year = get(YEAR); in add() local 440 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) { in add() 447 ++year; in add() 454 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) { in add() 461 --year; in add() 466 set(YEAR, year); in add() [all …]
|
D | IndianCalendar.java | 232 public IndianCalendar(int year, int month, int date) { in IndianCalendar() argument 234 this.set(Calendar.YEAR, year); in IndianCalendar() 258 public IndianCalendar(int year, int month, int date, int hour, in IndianCalendar() argument 262 this.set(Calendar.YEAR, year); in IndianCalendar() 287 int year; in handleGetExtendedYear() local 290 year = internalGet(EXTENDED_YEAR, 1); in handleGetExtendedYear() 293 year = internalGet(YEAR, 1); in handleGetExtendedYear() 296 return year; in handleGetExtendedYear() 411 protected int handleComputeMonthStart(int year, int month, boolean useMonth) { in handleComputeMonthStart() argument 418 year += month / 12; in handleComputeMonthStart() [all …]
|
D | IslamicCalendar.java | 258 public IslamicCalendar(int year, int month, int date) in IslamicCalendar() argument 261 this.set(Calendar.YEAR, year); in IslamicCalendar() 282 public IslamicCalendar(int year, int month, int date, int hour, in IslamicCalendar() argument 286 this.set(Calendar.YEAR, year); in IslamicCalendar() 547 private final static boolean civilLeapYear(int year) in civilLeapYear() argument 549 return (14 + 11 * year) % 30 < 11; in civilLeapYear() 556 private long yearStart(int year) { in yearStart() argument 560 …|| (cType == CalculationType.ISLAMIC_UMALQURA && (year < UMALQURA_YEAR_START || year > UMALQURA_YE… in yearStart() 561 ys = (year-1)*354 + (long)Math.floor((3+11*year)/30.0); in yearStart() 563 ys = trueMonthStart(12*(year-1)); in yearStart() [all …]
|
D | AnnualTimeZoneRule.java | 99 public Date getStartInYear(int year, int prevRawOffset, int prevDSTSavings) { in getStartInYear() argument 100 if (year < startYear || year > endYear) { in getStartInYear() 108 … ruleDay = Grego.fieldsToDay(year, dateTimeRule.getRuleMonth(), dateTimeRule.getRuleDayOfMonth()); in getStartInYear() 114 ruleDay = Grego.fieldsToDay(year, dateTimeRule.getRuleMonth(), 1); in getStartInYear() 118 ruleDay = Grego.fieldsToDay(year, dateTimeRule.getRuleMonth(), in getStartInYear() 119 Grego.monthLength(year, dateTimeRule.getRuleMonth())); in getStartInYear() 128 if (month == Calendar.FEBRUARY && dom == 29 && !Grego.isLeapYear(year)) { in getStartInYear() 132 ruleDay = Grego.fieldsToDay(year, month, dom); in getStartInYear() 177 int year = fields[0]; in getNextStart() local 178 if (year < startYear) { in getNextStart() [all …]
|
D | PersianCalendar.java | 223 public PersianCalendar(int year, int month, int date) in PersianCalendar() argument 226 this.set(Calendar.YEAR, year); in PersianCalendar() 251 public PersianCalendar(int year, int month, int date, int hour, in PersianCalendar() argument 255 this.set(Calendar.YEAR, year); in PersianCalendar() 310 private final static boolean isLeapYear(int year) in isLeapYear() argument 313 floorDivide(25 * year + 11, 33, remainder); in isLeapYear() 392 int year; in handleGetExtendedYear() local 394 year = internalGet(EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear() 396 year = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear() 398 return year; in handleGetExtendedYear() [all …]
|
D | JapaneseCalendar.java | 147 public JapaneseCalendar(int era, int year, int month, int date) { in JapaneseCalendar() argument 148 super(year, month, date); in JapaneseCalendar() 165 public JapaneseCalendar(int year, int month, int date) { in JapaneseCalendar() argument 166 super(year, month, date); in JapaneseCalendar() 189 public JapaneseCalendar(int year, int month, int date, int hour, in JapaneseCalendar() argument 192 super(year, month, date, hour, minute, second); in JapaneseCalendar() 206 int year; in handleGetExtendedYear() local 209 year = internalGet(EXTENDED_YEAR, GREGORIAN_EPOCH); in handleGetExtendedYear() 212 … year = internalGet(YEAR, 1) // pin to minimum of year 1 (first year) in handleGetExtendedYear() 216 return year; in handleGetExtendedYear() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | HebrewCalendar.java | 361 public HebrewCalendar(int year, int month, int date) { in HebrewCalendar() argument 363 this.set(YEAR, year); in HebrewCalendar() 400 public HebrewCalendar(int year, int month, int date, int hour, in HebrewCalendar() argument 404 this.set(YEAR, year); in HebrewCalendar() 457 int year = get(YEAR); in add() local 463 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) { in add() 470 ++year; in add() 477 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) { in add() 484 --year; in add() 489 set(YEAR, year); in add() [all …]
|
D | IndianCalendar.java | 254 public IndianCalendar(int year, int month, int date) { in IndianCalendar() argument 256 this.set(Calendar.YEAR, year); in IndianCalendar() 281 public IndianCalendar(int year, int month, int date, int hour, in IndianCalendar() argument 285 this.set(Calendar.YEAR, year); in IndianCalendar() 311 int year; in handleGetExtendedYear() local 314 year = internalGet(EXTENDED_YEAR, 1); in handleGetExtendedYear() 317 year = internalGet(YEAR, 1); in handleGetExtendedYear() 320 return year; in handleGetExtendedYear() 440 protected int handleComputeMonthStart(int year, int month, boolean useMonth) { in handleComputeMonthStart() argument 447 year += month / 12; in handleComputeMonthStart() [all …]
|
D | IslamicCalendar.java | 278 public IslamicCalendar(int year, int month, int date) in IslamicCalendar() argument 281 this.set(Calendar.YEAR, year); in IslamicCalendar() 303 public IslamicCalendar(int year, int month, int date, int hour, in IslamicCalendar() argument 307 this.set(Calendar.YEAR, year); in IslamicCalendar() 569 private final static boolean civilLeapYear(int year) in civilLeapYear() argument 571 return (14 + 11 * year) % 30 < 11; in civilLeapYear() 578 private long yearStart(int year) { in yearStart() argument 582 …|| (cType == CalculationType.ISLAMIC_UMALQURA && (year < UMALQURA_YEAR_START || year > UMALQURA_YE… in yearStart() 583 ys = (year-1)*354 + (long)Math.floor((3+11*year)/30.0); in yearStart() 585 ys = trueMonthStart(12*(year-1)); in yearStart() [all …]
|
D | PersianCalendar.java | 221 public PersianCalendar(int year, int month, int date) in PersianCalendar() argument 224 this.set(Calendar.YEAR, year); in PersianCalendar() 249 public PersianCalendar(int year, int month, int date, int hour, in PersianCalendar() argument 253 this.set(Calendar.YEAR, year); in PersianCalendar() 308 private final static boolean isLeapYear(int year) in isLeapYear() argument 311 floorDivide(25 * year + 11, 33, remainder); in isLeapYear() 390 int year; in handleGetExtendedYear() local 392 year = internalGet(EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear() 394 year = internalGet(YEAR, 1); // Default to year 1 in handleGetExtendedYear() 396 return year; in handleGetExtendedYear() [all …]
|
D | AnnualTimeZoneRule.java | 109 public Date getStartInYear(int year, int prevRawOffset, int prevDSTSavings) { in getStartInYear() argument 110 if (year < startYear || year > endYear) { in getStartInYear() 118 … ruleDay = Grego.fieldsToDay(year, dateTimeRule.getRuleMonth(), dateTimeRule.getRuleDayOfMonth()); in getStartInYear() 124 ruleDay = Grego.fieldsToDay(year, dateTimeRule.getRuleMonth(), 1); in getStartInYear() 128 ruleDay = Grego.fieldsToDay(year, dateTimeRule.getRuleMonth(), in getStartInYear() 129 Grego.monthLength(year, dateTimeRule.getRuleMonth())); in getStartInYear() 138 if (month == Calendar.FEBRUARY && dom == 29 && !Grego.isLeapYear(year)) { in getStartInYear() 142 ruleDay = Grego.fieldsToDay(year, month, dom); in getStartInYear() 190 int year = fields[0]; in getNextStart() local 191 if (year < startYear) { in getNextStart() [all …]
|
D | JapaneseCalendar.java | 155 public JapaneseCalendar(int era, int year, int month, int date) { in JapaneseCalendar() argument 156 super(year, month, date); in JapaneseCalendar() 174 public JapaneseCalendar(int year, int month, int date) { in JapaneseCalendar() argument 175 super(year, month, date); in JapaneseCalendar() 199 public JapaneseCalendar(int year, int month, int date, int hour, in JapaneseCalendar() argument 202 super(year, month, date, hour, minute, second); in JapaneseCalendar() 217 int year; in handleGetExtendedYear() local 220 year = internalGet(EXTENDED_YEAR, GREGORIAN_EPOCH); in handleGetExtendedYear() 223 … year = internalGet(YEAR, 1) // pin to minimum of year 1 (first year) in handleGetExtendedYear() 227 return year; in handleGetExtendedYear() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | japancal.cpp | 36 int16_t year; member 333 if(eyear == kEraInfo[era].year) { in getDefaultMonthInYear() 346 if(eyear == kEraInfo[era].year) { in getDefaultDayInMonth() 365 int32_t year; in handleGetExtendedYear() local 369 year = internalGet(UCAL_EXTENDED_YEAR, kGregorianEpoch); in handleGetExtendedYear() 372 year = internalGet(UCAL_YEAR) + kEraInfo[internalGetEra()].year - 1; in handleGetExtendedYear() 374 return year; in handleGetExtendedYear() 382 int32_t year = internalGet(UCAL_EXTENDED_YEAR); // Gregorian year in handleComputeFields() local 391 fprintf(stderr, "== %d \n", year); in handleComputeFields() 394 if (year > kEraInfo[kCurrentEra].year) { in handleComputeFields() [all …]
|
D | hebrwcal.cpp | 225 int32_t year = get(UCAL_YEAR, status); in add() local 231 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) { in add() 238 ++year; in add() 245 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) { in add() 252 --year; in add() 257 set(UCAL_YEAR, year); in add() 317 int32_t year = get(UCAL_YEAR, status); in roll() local 319 UBool leapYear = isLeapYear(year); in roll() 320 int32_t yearLength = monthsInYear(year); in roll() 387 int32_t HebrewCalendar::startOfYear(int32_t year, UErrorCode &status) in startOfYear() argument [all …]
|
D | islamcal.cpp | 359 UBool IslamicCalendar::civilLeapYear(int32_t year) in civilLeapYear() argument 361 return (14 + 11 * year) % 30 < 11; in civilLeapYear() 368 int32_t IslamicCalendar::yearStart(int32_t year) const{ in yearStart() 370 (cType == UMALQURA && (year < UMALQURA_YEAR_START || year > UMALQURA_YEAR_END))) in yearStart() 372 return (year-1)*354 + ClockMath::floorDivide((3+11*year),30); in yearStart() 374 return trueMonthStart(12*(year-1)); in yearStart() 376 year -= UMALQURA_YEAR_START; in yearStart() 378 int32_t yrStartLinearEstimate = (int32_t)((354.36720 * (double)year) + 460322.05 + 0.5); in yearStart() 380 return yrStartLinearEstimate + umAlQuraYrStartEstimateFix[year]; in yearStart() 391 int32_t IslamicCalendar::monthStart(int32_t year, int32_t month) const { in monthStart() argument [all …]
|
D | indiancal.cpp | 95 static UBool isGregorianLeap(int32_t year) in isGregorianLeap() argument 97 return ((year % 4) == 0) && (!(((year % 100) == 0) && ((year % 400) != 0))); in isGregorianLeap() 141 static double gregorianToJD(int32_t year, int32_t month, int32_t date) { in gregorianToJD() argument 143 (365 * (year - 1)) + in gregorianToJD() 144 uprv_floor((year - 1) / 4) + in gregorianToJD() 145 (-uprv_floor((year - 1) / 100)) + in gregorianToJD() 146 uprv_floor((year - 1) / 400) + in gregorianToJD() 149 (isGregorianLeap(year) ? -1 : -2) in gregorianToJD() 162 int32_t year, month, day; in jdToGregorian() local 172 year = (int32_t)((quadricent * 400) + (cent * 100) + (quad * 4) + yindex); in jdToGregorian() [all …]
|
D | persncal.cpp | 108 UBool PersianCalendar::isLeapYear(int32_t year) in isLeapYear() argument 111 ClockMath::floorDivide(25 * year + 11, 33, remainder); in isLeapYear() 119 int32_t PersianCalendar::yearStart(int32_t year) { in yearStart() argument 120 return handleComputeMonthStart(year,0,FALSE); in yearStart() 130 int32_t PersianCalendar::monthStart(int32_t year, int32_t month) const { in monthStart() argument 131 return handleComputeMonthStart(year,month,TRUE); in monthStart() 187 int32_t year; in handleGetExtendedYear() local 189 year = internalGet(UCAL_EXTENDED_YEAR, 1); // Default to year 1 in handleGetExtendedYear() 191 year = internalGet(UCAL_YEAR, 1); // Default to year 1 in handleGetExtendedYear() 193 return year; in handleGetExtendedYear() [all …]
|
D | gregoimp.h | 142 static inline UBool isLeapYear(int32_t year); 150 static inline int8_t monthLength(int32_t year, int32_t month); 168 static double fieldsToDay(int32_t year, int32_t month, int32_t dom); 180 static void dayToFields(double day, int32_t& year, int32_t& month, 192 static inline void dayToFields(double day, int32_t& year, int32_t& month, 206 static void timeToFields(UDate time, int32_t& year, int32_t& month, 224 static int32_t dayOfWeekInMonth(int32_t year, int32_t month, int32_t dom); 258 inline UBool Grego::isLeapYear(int32_t year) { in isLeapYear() argument 260 return ((year&0x3) == 0) && ((year%100 != 0) || (year%400 == 0)); in isLeapYear() 264 Grego::monthLength(int32_t year, int32_t month) { in monthLength() argument [all …]
|
/external/v8/test/cctest/ |
D | test-date.cc | 38 int year, start_month, start_day, end_month, end_day, offset_sec; member 48 int year, month, day; in GetDaylightSavingsOffsetFromOS() local 49 YearMonthDayFromDays(days, &year, &month, &day); in GetDaylightSavingsOffsetFromOS() 50 Rule* rule = FindRuleFor(year, month, day, time_in_day_sec); in GetDaylightSavingsOffsetFromOS() 60 Rule* FindRuleFor(int year, int month, int day, int time_in_day_sec) { in FindRuleFor() argument 63 if (Match(&rules_[i], year, month, day, time_in_day_sec)) { in FindRuleFor() 70 bool Match(Rule* rule, int year, int month, int day, int time_in_day_sec) { in Match() argument 71 if (rule->year != 0 && rule->year != year) return false; in Match() 74 int start_day = ComputeRuleDay(year, rule->start_month, rule->start_day); in Match() 79 int end_day = ComputeRuleDay(year, rule->end_month, rule->end_day); in Match() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | Grego.java | 60 public static final boolean isLeapYear(int year) { in isLeapYear() argument 62 return ((year&0x3) == 0) && ((year%100 != 0) || (year%400 == 0)); in isLeapYear() 71 public static final int monthLength(int year, int month) { in monthLength() argument 72 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)]; in monthLength() 81 public static final int previousMonthLength(int year, int month) { in previousMonthLength() argument 82 return (month > 0) ? monthLength(year, month-1) : 31; in previousMonthLength() 93 public static long fieldsToDay(int year, int month, int dom) { in fieldsToDay() argument 94 int y = year - 1; in fieldsToDay() 98 DAYS_BEFORE[month + (isLeapYear(year) ? 12 : 0)] + dom; // => month/dom in fieldsToDay() 128 int year = (int)(400 * n400 + 100 * n100 + 4 * n4 + n1); in dayToFields() local [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | Grego.java | 62 public static final boolean isLeapYear(int year) { in isLeapYear() argument 64 return ((year&0x3) == 0) && ((year%100 != 0) || (year%400 == 0)); in isLeapYear() 73 public static final int monthLength(int year, int month) { in monthLength() argument 74 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)]; in monthLength() 83 public static final int previousMonthLength(int year, int month) { in previousMonthLength() argument 84 return (month > 0) ? monthLength(year, month-1) : 31; in previousMonthLength() 95 public static long fieldsToDay(int year, int month, int dom) { in fieldsToDay() argument 96 int y = year - 1; in fieldsToDay() 100 DAYS_BEFORE[month + (isLeapYear(year) ? 12 : 0)] + dom; // => month/dom in fieldsToDay() 130 int year = (int)(400 * n400 + 100 * n100 + 4 * n4 + n1); in dayToFields() local [all …]
|
/external/lzma/CPP/Windows/ |
D | TimeUtils.cpp | 58 unsigned year, mon, day, hour, min, sec; in FileTimeToDosTime() 74 year = (unsigned)(kFileTimeStartYear + v / PERIOD_400 * 400); in FileTimeToDosTime() 80 year += temp * 100; in FileTimeToDosTime() 86 year += temp * 4; in FileTimeToDosTime() 92 year += temp; in FileTimeToDosTime() 95 if (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)) in FileTimeToDosTime() 107 if (year < kDosTimeStartYear) in FileTimeToDosTime() 109 year -= kDosTimeStartYear; in FileTimeToDosTime() 111 if (year >= 128) in FileTimeToDosTime() 113 dosTime = (year << 25) | (mon << 21) | (day << 16) | (hour << 11) | (min << 5) | (sec >> 1); in FileTimeToDosTime() [all …]
|
/external/icu/icu4c/source/data/rbnf/ |
D | en.txt | 45 "%%2d-year:", 49 "%spellout-numbering-year:", 53 "1010/100: << >%%2d-year>;", 54 "1100/100: << >%%2d-year>;", 56 "2010/100: << >%%2d-year>;", 57 "2100/100: << >%%2d-year>;", 59 "3010/100: << >%%2d-year>;", 60 "3100/100: << >%%2d-year>;", 62 "4010/100: << >%%2d-year>;", 63 "4100/100: << >%%2d-year>;", [all …]
|
/external/opencv3/doc/ |
D | opencv.bib | 10 year = {2012}, 17 year = {2011}, 26 year = {1983}, 36 year = {2007}, 46 year = {1999}, 56 year = {1998}, 66 year = {1981}, 76 year = {1986}, 86 year = {2001}, 93 year = {2004} [all …]
|
/external/v8/src/ |
D | date.cc | 54 int days, int* year, int* month, int* day) { in YearMonthDayFromDays() argument 62 *year = ymd_year_; in YearMonthDayFromDays() 71 *year = 400 * (days / kDaysIn400Years) - kYearsOffset; in YearMonthDayFromDays() 74 DCHECK_EQ(save_days, DaysFromYearMonth(*year, 0) + days); in YearMonthDayFromDays() 79 *year += 100 * yd1; in YearMonthDayFromDays() 84 *year += 4 * yd2; in YearMonthDayFromDays() 89 *year += yd3; in YearMonthDayFromDays() 97 DCHECK(is_leap == ((*year % 4 == 0) && (*year % 100 || (*year % 400 == 0)))); in YearMonthDayFromDays() 98 DCHECK(is_leap || ((DaysFromYearMonth(*year, 0) + days) == save_days)); in YearMonthDayFromDays() 99 DCHECK(!is_leap || ((DaysFromYearMonth(*year, 0) + days + 1) == save_days)); in YearMonthDayFromDays() [all …]
|