Home
last modified time | relevance | path

Searched refs:mod7 (Results 1 – 2 of 2) sorted by relevance

/libcore/luni/src/main/java/java/util/
DGregorianCalendar.java502 fields[DAY_OF_WEEK] = mod7(days - 3) + 1; in fullFieldsCalc()
533 fields[DAY_OF_WEEK] = mod7(days - 3) + 1; in fullFieldsCalc()
556 fields[WEEK_OF_MONTH] = (date - 1 + mod7(days - date - 2 in fullFieldsCalc()
558 int daysFromStart = mod7(days - 3 - (fields[DAY_OF_YEAR] - 1) in fullFieldsCalc()
563 fields[WEEK_OF_YEAR] = 7 - mod7(daysFromStart in fullFieldsCalc()
567 - mod7(daysFromStart + (leapYear ? 2 : 1))) { in fullFieldsCalc()
568 …fields[WEEK_OF_YEAR] = 7 - mod7(daysFromStart + (leapYear ? 2 : 1)) >= getMinimalDaysInFirstWeek()… in fullFieldsCalc()
746 int skew = mod7(days - 3 - (getFirstDayOfWeek() - 1)); in computeTime()
748 + mod7(skew + dayOfWeek - (days - 3)) - skew; in computeTime()
751 days += mod7(dayOfWeek - (days - 3)) in computeTime()
[all …]
DSimpleTimeZone.java364 int ruleDay = 0, daysInMonth, firstDayOfMonth = mod7(dayOfWeek - day); in getOffset()
372 ruleDay = mod7(startDayOfWeek - firstDayOfMonth) + 1 in getOffset()
382 + mod7(startDayOfWeek in getOffset()
389 + mod7(startDayOfWeek in getOffset()
394 + mod7(startDayOfWeek in getOffset()
415 ruleDay = mod7(endDayOfWeek - firstDayOfMonth) + 1 in getOffset()
424 + mod7(endDayOfWeek in getOffset()
431 + mod7( in getOffset()
436 + mod7( in getOffset()
537 private int mod7(int num1) { in mod7() method in SimpleTimeZone