Home
last modified time | relevance | path

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

/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()
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()
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 …]
Dislamcal.cpp522 int32_t year, month, dayOfMonth, dayOfYear; in handleComputeFields() local
598 dayOfYear = (days - monthStart(year, 0) + 1); in handleComputeFields()
606 internalSet(UCAL_DAY_OF_YEAR, dayOfYear); in handleComputeFields()
Dcalendar.cpp1562 int32_t dayOfYear = fFields[UCAL_DAY_OF_YEAR]; in computeWeekFields() local
1575 int32_t relDowJan1 = (dayOfWeek - dayOfYear + 7001 - getFirstDayOfWeek()) % 7; // 0..6 in computeWeekFields()
1576 int32_t woy = (dayOfYear - 1 + relDowJan1) / 7; // 0..53 in computeWeekFields()
1589 int32_t prevDoy = dayOfYear + handleGetYearLength(eyear - 1); in computeWeekFields()
1600 if (dayOfYear >= (lastDoy - 5)) { in computeWeekFields()
1601 int32_t lastRelDow = (relDow + lastDoy - dayOfYear) % 7; in computeWeekFields()
1606 ((dayOfYear + 7 - relDow) > lastDoy)) { in computeWeekFields()
/external/chromium_org/third_party/icu/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()
Dhebrwcal.cpp562 int32_t dayOfYear = (d - ys); in handleComputeFields() local
565 while (dayOfYear < 1) { in handleComputeFields()
568 dayOfYear = (d - ys); in handleComputeFields()
577 …while (month < momax && dayOfYear > ( isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month]… in handleComputeFields()
594 … int dayOfMonth = dayOfYear - (isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month][type]); in handleComputeFields()
601 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 …]
Dislamcal.cpp522 int32_t year, month, dayOfMonth, dayOfYear; in handleComputeFields() local
598 dayOfYear = (days - monthStart(year, 0) + 1); in handleComputeFields()
606 internalSet(UCAL_DAY_OF_YEAR, dayOfYear); in handleComputeFields()
Dcalendar.cpp1433 int32_t dayOfYear = fFields[UCAL_DAY_OF_YEAR]; in computeWeekFields() local
1446 int32_t relDowJan1 = (dayOfWeek - dayOfYear + 7001 - getFirstDayOfWeek()) % 7; // 0..6 in computeWeekFields()
1447 int32_t woy = (dayOfYear - 1 + relDowJan1) / 7; // 0..53 in computeWeekFields()
1460 int32_t prevDoy = dayOfYear + handleGetYearLength(eyear - 1); in computeWeekFields()
1471 if (dayOfYear >= (lastDoy - 5)) { in computeWeekFields()
1472 int32_t lastRelDow = (relDow + lastDoy - dayOfYear) % 7; in computeWeekFields()
1477 ((dayOfYear + 7 - relDow) > lastDoy)) { in computeWeekFields()
/external/chromium_org/third_party/d3/src/
Dd3.js2395 d3_time.dayOfYear = function(date) { function
2408 return Math.floor((d3_time.dayOfYear(date) + (day + i) % 7) / 7) - (day !== i);
2414 return Math.floor((d3_time.dayOfYear(date) + (day + i) % 7) / 7);
2536 return d3_time_formatPad(1 + d3_time.dayOfYear(d), p, 3);