Home
last modified time | relevance | path

Searched refs:dayOfYear (Results 1 – 14 of 14) sorted by relevance

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DPersianCalendar.java418 int year, month, dayOfMonth, dayOfYear; in handleComputeFields() local
424 dayOfYear = (int)(daysSinceEpoch - farvardin1); // 0-based in handleComputeFields()
425 if (dayOfYear < 216) { // Compute 0-based month in handleComputeFields()
426 month = dayOfYear / 31; in handleComputeFields()
428 month = (dayOfYear - 6) / 30; in handleComputeFields()
430 dayOfMonth = dayOfYear - MONTH_COUNT[month][2] + 1; in handleComputeFields()
431 ++dayOfYear; // Make it 1-based now in handleComputeFields()
438 internalSet(DAY_OF_YEAR, dayOfYear); in handleComputeFields()
DGregorianCalendar.java757 int eyear, month, dayOfMonth, dayOfYear; in handleComputeFields() local
762 dayOfYear = getGregorianDayOfYear(); in handleComputeFields()
772 dayOfYear = (int)(julianEpochDay - january1); // 0-based in handleComputeFields()
785 if (dayOfYear >= march1) { in handleComputeFields()
788 month = (12 * (dayOfYear + correction) + 6) / 367; // zero-based month in handleComputeFields()
789 dayOfMonth = dayOfYear - MONTH_COUNT[month][isLeap?3:2] + 1; // one-based DOM in handleComputeFields()
790 ++dayOfYear; in handleComputeFields()
794 internalSet(DAY_OF_YEAR, dayOfYear); in handleComputeFields()
DHebrewCalendar.java797 int dayOfYear = (int)(d - ys); in handleComputeFields() local
800 while (dayOfYear < 1) { in handleComputeFields()
803 dayOfYear = (int)(d - ys); in handleComputeFields()
811 while (dayOfYear > monthStart[month][yearType]) { in handleComputeFields()
815 int dayOfMonth = dayOfYear - monthStart[month][yearType]; in handleComputeFields()
822 internalSet(DAY_OF_YEAR, dayOfYear); in handleComputeFields()
DSimpleDateRule.java123 int dayOfYear = c.get(Calendar.DAY_OF_YEAR); in isOn() local
130 return c.get(Calendar.DAY_OF_YEAR) == dayOfYear; in isOn()
DEasterHoliday.java184 int dayOfYear = calendar.get(Calendar.DAY_OF_YEAR); in isOn() local
188 return calendar.get(Calendar.DAY_OF_YEAR) == dayOfYear; in isOn()
DCalendar.java5038 int year, month, dayOfMonth, dayOfYear; in computeGregorianFields() local
5053 dayOfYear = rem[0]; // zero-based day of year in computeGregorianFields()
5055 dayOfYear = 365; // Dec 31 at end of 4- or 400-yr cycle in computeGregorianFields()
5065 if (dayOfYear >= march1) correction = isLeap ? 1 : 2; in computeGregorianFields()
5066 month = (12 * (dayOfYear + correction) + 6) / 367; // zero-based month in computeGregorianFields()
5067 dayOfMonth = dayOfYear - in computeGregorianFields()
5073 gregorianDayOfYear = dayOfYear + 1; // Convert from 0-based to 1-based in computeGregorianFields()
5099 int dayOfYear = fields[DAY_OF_YEAR]; in computeWeekFields() local
5112 int relDowJan1 = (dayOfWeek - dayOfYear + 7001 - getFirstDayOfWeek()) % 7; // 0..6 in computeWeekFields()
5113 int woy = (dayOfYear - 1 + relDowJan1) / 7; // 0..53 in computeWeekFields()
[all …]
DIslamicCalendar.java832 int year =0, month=0, dayOfMonth=0, dayOfYear=0; in handleComputeFields() local
900 dayOfYear = (int)(days - monthStart(year, 0) + 1); in handleComputeFields()
908 internalSet(DAY_OF_YEAR, dayOfYear); in handleComputeFields()
/external/icu/icu4c/source/i18n/
Dpersncal.cpp211 int32_t year, month, dayOfMonth, dayOfYear; in handleComputeFields() local
217 dayOfYear = (daysSinceEpoch - farvardin1); // 0-based in handleComputeFields()
218 if (dayOfYear < 216) { // Compute 0-based month in handleComputeFields()
219 month = dayOfYear / 31; in handleComputeFields()
221 month = (dayOfYear - 6) / 30; in handleComputeFields()
223 dayOfMonth = dayOfYear - kPersianNumDays[month] + 1; in handleComputeFields()
224 ++dayOfYear; // Make it 1-based now in handleComputeFields()
231 internalSet(UCAL_DAY_OF_YEAR, dayOfYear); in handleComputeFields()
Dgregocal.cpp367 int32_t eyear, month, dayOfMonth, dayOfYear, unusedRemainder; in handleComputeFields() local
383 dayOfYear = getGregorianDayOfYear(); in handleComputeFields()
393 dayOfYear = (julianEpochDay - january1); // 0-based in handleComputeFields()
406 if (dayOfYear >= march1) { in handleComputeFields()
409 month = (12 * (dayOfYear + correction) + 6) / 367; // zero-based month in handleComputeFields()
410 dayOfMonth = dayOfYear - (isLeap?kLeapNumDays[month]:kNumDays[month]) + 1; // one-based DOM in handleComputeFields()
411 ++dayOfYear; in handleComputeFields()
419 __FILE__, __LINE__, dayOfYear, getGregorianDayOfYear(), fCutoverJulianDay); in handleComputeFields()
430 __FILE__, __LINE__,gregShift, dayOfYear, dayOfYear+gregShift, fCutoverJulianDay); in handleComputeFields()
432 dayOfYear += gregShift; in handleComputeFields()
[all …]
Dhebrwcal.cpp569 int32_t dayOfYear = (d - ys); in handleComputeFields() local
572 while (dayOfYear < 1) { in handleComputeFields()
575 dayOfYear = (d - ys); in handleComputeFields()
584 …while (month < momax && dayOfYear > ( isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month]… in handleComputeFields()
601 … int dayOfMonth = dayOfYear - (isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month][type]); in handleComputeFields()
608 internalSet(UCAL_DAY_OF_YEAR, dayOfYear); in handleComputeFields()
Dislamcal.cpp606 int32_t year, month, dayOfMonth, dayOfYear; in handleComputeFields() local
683 dayOfYear = (days - monthStart(year, 0)) + 1; in handleComputeFields()
691 internalSet(UCAL_DAY_OF_YEAR, dayOfYear); in handleComputeFields()
Dcalendar.cpp1625 int32_t dayOfYear = fFields[UCAL_DAY_OF_YEAR]; in computeWeekFields() local
1638 int32_t relDowJan1 = (dayOfWeek - dayOfYear + 7001 - getFirstDayOfWeek()) % 7; // 0..6 in computeWeekFields()
1639 int32_t woy = (dayOfYear - 1 + relDowJan1) / 7; // 0..53 in computeWeekFields()
1652 int32_t prevDoy = dayOfYear + handleGetYearLength(eyear - 1); in computeWeekFields()
1663 if (dayOfYear >= (lastDoy - 5)) { in computeWeekFields()
1664 int32_t lastRelDow = (relDow + lastDoy - dayOfYear) % 7; in computeWeekFields()
1669 ((dayOfYear + 7 - relDow) > lastDoy)) { in computeWeekFields()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DGrego.java129 int dayOfYear = (int)rem[0]; in dayToFields() local
131 dayOfYear = 365; // Dec 31 at end of 4- or 400-yr cycle in dayToFields()
140 if (dayOfYear >= march1) { in dayToFields()
143 int month = (12 * (dayOfYear + correction) + 6) / 367; // zero-based month in dayToFields()
144 int dayOfMonth = dayOfYear - DAYS_BEFORE[isLeap ? month + 12 : month] + 1; // one-based DOM in dayToFields()
149 dayOfYear++; // 1-based day of year in dayToFields()
155 fields[4] = dayOfYear; in dayToFields()
/external/chromium-trace/trace-viewer/tracing/third_party/d3/
Dd3.min.js3dayOfYear=function(n){var t=tc.year(n);return Math.floor((n-t-6e4*(n.getTimezoneOffset()-t.getTime…