Searched refs:DAY_OF_YEAR (Results 1 – 10 of 10) sorted by relevance
/libcore/luni/src/main/java/java/util/ |
D | GregorianCalendar.java | 427 case DAY_OF_YEAR: in add() 491 fields[DAY_OF_YEAR] = dayOfYear; in fullFieldsCalc() 522 fields[DAY_OF_YEAR] = dayOfYear; in fullFieldsCalc() 558 int daysFromStart = mod7(days - 3 - (fields[DAY_OF_YEAR] - 1) in fullFieldsCalc() 560 int week = (fields[DAY_OF_YEAR] - 1 + daysFromStart) / 7 in fullFieldsCalc() 566 } else if (fields[DAY_OF_YEAR] >= (leapYear ? 367 : 366) in fullFieldsCalc() 695 && lastDateFieldSet != DAY_OF_YEAR; in computeTime() 709 } else if (isSet[DAY_OF_YEAR]) { in computeTime() 766 && lastDateFieldSet != DAY_OF_YEAR; in computeTime() 767 if (useWeekYear && isSet[DAY_OF_YEAR]) { in computeTime() [all …]
|
D | Calendar.java | 547 public static final int DAY_OF_YEAR = 6; field in Calendar
|
D | Formatter.java | 1928 appendLocalized(result, calendar.get(Calendar.DAY_OF_YEAR), 3); in appendT()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | Support_SimpleDateFormat.java | 86 t_FormatWithField(11, format, date, null, Field.DAY_OF_YEAR, 113, 116); in t_format_with_FieldPosition() 115 t_FormatWithField(33, format, date, null, Field.DAY_OF_YEAR, 0, 0); in t_format_with_FieldPosition() 239 v.add(new FieldContainer(113, 116, Field.DAY_OF_YEAR)); in getDateVector4() 240 v.add(new FieldContainer(117, 120, Field.DAY_OF_YEAR)); in getDateVector4() 241 v.add(new FieldContainer(121, 124, Field.DAY_OF_YEAR)); in getDateVector4()
|
D | SimpleDateFormatTest.java | 615 cal.set(Calendar.DAY_OF_YEAR, 243); in test_parseLjava_lang_StringLjava_text_ParsePosition()
|
/libcore/luni/src/main/java/java/text/ |
D | DateFormat.java | 749 public static final Field DAY_OF_YEAR = new Field("day of year", Calendar.DAY_OF_YEAR); field in DateFormat.Field
|
D | SimpleDateFormat.java | 638 dateFormatField = Field.DAY_OF_YEAR; in append() 639 field = Calendar.DAY_OF_YEAR; in append() 916 field = Calendar.DAY_OF_YEAR; in parse()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | CalendarTest.java | 125 cal.set(Calendar.DAY_OF_YEAR, 170); in test_setII() 139 cal.set(Calendar.DAY_OF_YEAR, 170); in test_setII() 258 cal.set(Calendar.DAY_OF_YEAR, 70); in test_setII() 266 cal.set(Calendar.DAY_OF_YEAR, 170); in test_setII() 276 cal.set(Calendar.DAY_OF_YEAR, 70); in test_setII() 284 cal.set(Calendar.DAY_OF_YEAR, 70); in test_setII() 326 cal.set(Calendar.DAY_OF_YEAR, 70); in test_setII() 364 cal.set(Calendar.DAY_OF_YEAR, 111); in test_setII()
|
D | GregorianCalendarTest.java | 238 gc1.add(Calendar.DAY_OF_YEAR, 1); in test_addII() 319 assertEquals(355, gc.getActualMaximum(Calendar.DAY_OF_YEAR)); in test_getActualMaximumI() 322 assertEquals(353, gc.getActualMaximum(Calendar.DAY_OF_YEAR)); in test_getActualMaximumI() 728 assertEquals(346, gc.get(Calendar.DAY_OF_YEAR)); in test_getI()
|
/libcore/luni/src/main/java/libcore/util/ |
D | ZoneInfo.java | 830 yearDay = calendar.get(Calendar.DAY_OF_YEAR) - 1;
|