/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
Grego.java | 131 int dayOfYear = (int)rem[0]; 133 dayOfYear = 365; // Dec 31 at end of 4- or 400-yr cycle 142 if (dayOfYear >= march1) { 145 int month = (12 * (dayOfYear + correction) + 6) / 367; // zero-based month 146 int dayOfMonth = dayOfYear - DAYS_BEFORE[isLeap ? month + 12 : month] + 1; // one-based DOM 151 dayOfYear++; // 1-based day of year 157 fields[4] = dayOfYear; 169 * result[4] : dayOfYear
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
TestJapaneseChronology.java | 67 // Japanese era, yearOfEra, dayOfYear, month, dayOfMonth 134 // Japanese era, yearOfEra, dayOfYear 172 public void test_firstDayOfEra(JapaneseEra era, int yearOfEra, int dayOfYear, int month, int dayOfMonth) { 173 JapaneseDate date1 = JAPANESE.dateYearDay(era, yearOfEra, dayOfYear); 191 public void test_invalidDayYear(JapaneseEra era, int yearOfEra, int dayOfYear) { 192 JapaneseDate date = JAPANESE.dateYearDay(era, yearOfEra, dayOfYear); 193 System.out.printf("No DateTimeException with era=%s, year=%d, dayOfYear=%d%n", era, yearOfEra, dayOfYear);
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
Grego.java | 133 int dayOfYear = (int)rem[0]; 135 dayOfYear = 365; // Dec 31 at end of 4- or 400-yr cycle 144 if (dayOfYear >= march1) { 147 int month = (12 * (dayOfYear + correction) + 6) / 367; // zero-based month 148 int dayOfMonth = dayOfYear - DAYS_BEFORE[isLeap ? month + 12 : month] + 1; // one-based DOM 153 dayOfYear++; // 1-based day of year 159 fields[4] = dayOfYear; 171 * result[4] : dayOfYear
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
SimpleDateRule.java | 121 int dayOfYear = c.get(Calendar.DAY_OF_YEAR); 125 // System.out.println(" isOn: dayOfYear = " + dayOfYear); 128 return c.get(Calendar.DAY_OF_YEAR) == dayOfYear; 190 //System.out.println(" dayOfYear = " + c.get(Calendar.DAY_OF_YEAR));
|
PersianCalendar.java | 422 int year, month, dayOfMonth, dayOfYear; 428 dayOfYear = (int)(daysSinceEpoch - farvardin1); // 0-based 429 if (dayOfYear < 216) { // Compute 0-based month 430 month = dayOfYear / 31; 432 month = (dayOfYear - 6) / 30; 434 dayOfMonth = dayOfYear - MONTH_COUNT[month][2] + 1; 435 ++dayOfYear; // Make it 1-based now 442 internalSet(DAY_OF_YEAR, dayOfYear);
|
GregorianCalendar.java | 734 int eyear, month, dayOfMonth, dayOfYear; 739 dayOfYear = getGregorianDayOfYear(); 749 dayOfYear = (int)(julianEpochDay - january1); // 0-based [all...] |
EasterHoliday.java | 175 int dayOfYear = calendar.get(Calendar.DAY_OF_YEAR); 179 return calendar.get(Calendar.DAY_OF_YEAR) == dayOfYear;
|
HebrewCalendar.java | 773 int dayOfYear = (int)(d - ys); 776 while (dayOfYear < 1) { 779 dayOfYear = (int)(d - ys); 787 while (dayOfYear > monthStart[month][yearType]) { 791 int dayOfMonth = dayOfYear - monthStart[month][yearType]; 798 internalSet(DAY_OF_YEAR, dayOfYear); [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
SimpleDateRule.java | 125 int dayOfYear = c.get(Calendar.DAY_OF_YEAR); 129 // System.out.println(" isOn: dayOfYear = " + dayOfYear); 132 return c.get(Calendar.DAY_OF_YEAR) == dayOfYear; 195 //System.out.println(" dayOfYear = " + c.get(Calendar.DAY_OF_YEAR));
|
PersianCalendar.java | 420 int year, month, dayOfMonth, dayOfYear; 426 dayOfYear = (int)(daysSinceEpoch - farvardin1); // 0-based 427 if (dayOfYear < 216) { // Compute 0-based month 428 month = dayOfYear / 31; 430 month = (dayOfYear - 6) / 30; 432 dayOfMonth = dayOfYear - MONTH_COUNT[month][2] + 1; 433 ++dayOfYear; // Make it 1-based now 440 internalSet(DAY_OF_YEAR, dayOfYear);
|
GregorianCalendar.java | 759 int eyear, month, dayOfMonth, dayOfYear; 764 dayOfYear = getGregorianDayOfYear(); 774 dayOfYear = (int)(julianEpochDay - january1); // 0-based [all...] |
EasterHoliday.java | 189 int dayOfYear = calendar.get(Calendar.DAY_OF_YEAR); 193 return calendar.get(Calendar.DAY_OF_YEAR) == dayOfYear;
|
HebrewCalendar.java | 799 int dayOfYear = (int)(d - ys); 802 while (dayOfYear < 1) { 805 dayOfYear = (int)(d - ys); 813 while (dayOfYear > monthStart[month][yearType]) { 817 int dayOfMonth = dayOfYear - monthStart[month][yearType]; 824 internalSet(DAY_OF_YEAR, dayOfYear); [all...] |
/external/icu/icu4c/source/i18n/ |
persncal.cpp | 213 int32_t year, month, dayOfMonth, dayOfYear; 219 dayOfYear = (daysSinceEpoch - farvardin1); // 0-based 220 if (dayOfYear < 216) { // Compute 0-based month 221 month = dayOfYear / 31; 223 month = (dayOfYear - 6) / 30; 225 dayOfMonth = dayOfYear - kPersianNumDays[month] + 1; 226 ++dayOfYear; // Make it 1-based now 233 internalSet(UCAL_DAY_OF_YEAR, dayOfYear);
|
hebrwcal.cpp | 572 int32_t dayOfYear = (d - ys); 575 while (dayOfYear < 1) { 578 dayOfYear = (d - ys); 587 while (month < momax && dayOfYear > ( isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month][type] ) ) { 591 // TODO: I found dayOfYear could be out of range when 604 int dayOfMonth = dayOfYear - (isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month][type]); 611 internalSet(UCAL_DAY_OF_YEAR, dayOfYear);
|
gregocal.cpp | 369 int32_t eyear, month, dayOfMonth, dayOfYear, unusedRemainder; 385 dayOfYear = getGregorianDayOfYear(); 395 dayOfYear = (julianEpochDay - january1); // 0-based 408 if (dayOfYear >= march1) { 411 month = (12 * (dayOfYear + correction) + 6) / 367; // zero-based month 412 dayOfMonth = dayOfYear - (isLeap?kLeapNumDays[month]:kNumDays[month]) + 1; // one-based DOM 413 ++dayOfYear; 415 // fprintf(stderr, "%d - %d[%d] + 1\n", dayOfYear, isLeap?kLeapNumDays[month]:kNumDays[month], month ); 421 __FILE__, __LINE__, dayOfYear, getGregorianDayOfYear(), fCutoverJulianDay); 432 __FILE__, __LINE__,gregShift, dayOfYear, dayOfYear+gregShift, fCutoverJulianDay) [all...] |
/libcore/ojluni/src/main/java/java/time/chrono/ |
MinguoChronology.java | 201 * @param dayOfYear the day-of-year 207 public MinguoDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { 208 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); 216 * @param dayOfYear the day-of-year 221 public MinguoDate dateYearDay(int prolepticYear, int dayOfYear) { 222 return new MinguoDate(LocalDate.ofYearDay(prolepticYear + YEARS_DIFFERENCE, dayOfYear));
|
ThaiBuddhistChronology.java | 237 * @param dayOfYear the day-of-year 243 public ThaiBuddhistDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { 244 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); 252 * @param dayOfYear the day-of-year 257 public ThaiBuddhistDate dateYearDay(int prolepticYear, int dayOfYear) { 258 return new ThaiBuddhistDate(LocalDate.ofYearDay(prolepticYear - YEARS_DIFFERENCE, dayOfYear));
|
HijrahChronology.java | 462 * @param dayOfYear the day-of-year 468 public HijrahDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { 469 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); 477 * @param dayOfYear the day-of-year 483 public HijrahDate dateYearDay(int prolepticYear, int dayOfYear) { 485 if (dayOfYear > date.lengthOfYear()) { 486 throw new DateTimeException("Invalid dayOfYear: " + dayOfYear); 488 return date.plusDays(dayOfYear - 1); 622 void checkValidDayOfYear(int dayOfYear) { [all...] |
JapaneseChronology.java | 253 * @param dayOfYear the day-of-year 259 public JapaneseDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { 260 return JapaneseDate.ofYearDay((JapaneseEra) era, yearOfEra, dayOfYear); 272 * @param dayOfYear the day-of-year 277 public JapaneseDate dateYearDay(int prolepticYear, int dayOfYear) { 278 return new JapaneseDate(LocalDate.ofYearDay(prolepticYear, dayOfYear));
|
IsoChronology.java | 213 * @param dayOfYear the ISO day-of-year 218 public LocalDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { 219 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); 228 * @param dayOfYear the ISO day-of-year 233 public LocalDate dateYearDay(int prolepticYear, int dayOfYear) { 234 return LocalDate.ofYearDay(prolepticYear, dayOfYear);
|
Chronology.java | 126 * <li> {@link #dateYearDay(int, int) dateYearDay(yearProleptic, dayOfYear)} 127 * <li> {@link #dateYearDay(Era, int, int) dateYearDay(era, yearOfEra, dayOfYear)} 337 * @param dayOfYear the chronology day-of-year 342 default ChronoLocalDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { 343 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); 351 * @param dayOfYear the chronology day-of-year 355 ChronoLocalDate dateYearDay(int prolepticYear, int dayOfYear); [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
CopticChronology.java | 178 public CopticDate dateYearDay(int prolepticYear, int dayOfYear) { 179 return new CopticDate(prolepticYear, (dayOfYear - 1) / 30 + 1, (dayOfYear - 1) % 30 + 1);
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
ChronologyTest.java | 100 public ChronoLocalDate dateYearDay(int prolepticYear, int dayOfYear) {
|
IsoChronologyTest.java | 44 // proleptic Year, dayOfYear, expectedYear, expectedMonth, expectedDayOfMonth
|