Home
last modified time | relevance | path

Searched refs:days (Results 1 – 8 of 8) sorted by relevance

/libcore/ojluni/src/main/java/sun/util/calendar/
DAbstractCalendar.java120 long days = 0; // fixed date in getCalendarDate() local
136 days = zoneOffset / DAY_IN_MILLIS; in getCalendarDate()
143 days += millis / DAY_IN_MILLIS; in getCalendarDate()
148 ++days; in getCalendarDate()
154 --days; in getCalendarDate()
159 days += EPOCH_OFFSET; in getCalendarDate()
162 getCalendarDateFromFixedDate(date, days); in getCalendarDate()
364 long days = 0; in normalizeTime() local
367 days = fraction / DAY_IN_MILLIS; in normalizeTime()
370 days = CalendarUtils.floorDivide(fraction, DAY_IN_MILLIS); in normalizeTime()
[all …]
DJulianCalendar.java160 long days = JULIAN_EPOCH - 1 + (365 * (y - 1)) + dayOfMonth; in getFixedDate() local
163 days += (y - 1) / 4; in getFixedDate()
166 days += CalendarUtils.floorDivide(y - 1, 4); in getFixedDate()
169 days += ((367 * (long) month) - 362) / 12; in getFixedDate()
171 days += CalendarUtils.floorDivide((367 * (long) month) - 362, 12); in getFixedDate()
174 days -= CalendarUtils.isJulianLeapYear(jyear) ? 1 : 2; in getFixedDate()
179 cache.setCache(jyear, days, CalendarUtils.isJulianLeapYear(jyear) ? 366 : 365); in getFixedDate()
182 return days; in getFixedDate()
DBaseCalendar.java233 int days = normalizeTime(bdate); in normalize() local
235 long d = (long)bdate.getDayOfMonth() + days; in normalize()
333 int days = DAYS_IN_MONTH[month]; in getMonthLength() local
335 days++; in getMonthLength()
337 return days; in getMonthLength()
386 long days = dayOfMonth; in getFixedDate() local
389 days += (365 * prevyear) in getFixedDate()
395 days += (365 * prevyear) in getFixedDate()
403 days -= isLeapYear(year) ? 1 : 2; in getFixedDate()
408 cache.setCache(year, days, isLeapYear(year) ? 366 : 365); in getFixedDate()
[all …]
/libcore/luni/src/main/java/javax/xml/datatype/
DDatatypeFactory.java235 final BigInteger days, in newDuration() argument
272 final int days, in newDuration() argument
284 …BigInteger realDays = (days != DatatypeConstants.FIELD_UNDEFINED) ? BigInteger.valueOf((long) days in newDuration()
414 long days = val / 24L; in newDurationDayTime() local
415 if (days <= ((long) Integer.MAX_VALUE)) { in newDurationDayTime()
417 DatatypeConstants.FIELD_UNDEFINED, (int) days, hours, minutes, seconds); in newDurationDayTime()
421 BigInteger.valueOf(days), BigInteger.valueOf(hours), in newDurationDayTime()
432 BigInteger days = BigInteger.valueOf(val); in newDurationDayTime() local
433 return newDuration(isPositive, null, null, days, hours, minutes, seconds); in newDurationDayTime()
DDuration.java902 BigInteger days = (BigInteger) getField(DatatypeConstants.DAYS); in toString() local
903 if (days != null) { in toString()
904 buf.append(days).append('D'); in toString()
/libcore/luni/src/main/java/libcore/icu/
DRelativeDateTimeFormatter.java287 int days = Math.abs(DateUtilsBridge.dayDistance(timeCalendar, nowCalendar)); in getRelativeDateTimeString() local
295 if (days > 0 && minResolution < DAY_IN_MILLIS) { in getRelativeDateTimeString()
/libcore/ojluni/src/main/java/java/util/
DGregorianCalendar.java2093 int days = maxDayOfYear - dayOfYear + 1; in getWeekYear() local
2094 if (days <= (7 - minDayOfYear)) { in getWeekYear()
2158 int days = dayOfWeek - getFirstDayOfWeek(); in setWeekDate() local
2159 if (days < 0) { in setWeekDate()
2160 days += 7; in setWeekDate()
2162 days += 7 * (weekOfYear - 1); in setWeekDate()
2163 if (days != 0) { in setWeekDate()
2164 gc.add(DAY_OF_YEAR, days); in setWeekDate()
/libcore/support/src/test/java/tests/resources/x509/
Dcreate.sh27 openssl x509 -extfile "$DIR/default.cnf" -days 3650 -extensions usr_cert -req -signkey "$DIR/privke…
89 … -x509 -extensions v3_ca -keyout "$DIR/cakey.pem" -out "$DIR/cacert.pem" -days 3650 -config "$DIR/…