Home
last modified time | relevance | path

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

123456

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DPersianCalendar.java420 int year, month, dayOfMonth, dayOfYear; in handleComputeFields() local
426 dayOfYear = (int)(daysSinceEpoch - farvardin1); // 0-based in handleComputeFields()
427 if (dayOfYear < 216) { // Compute 0-based month in handleComputeFields()
428 month = dayOfYear / 31; in handleComputeFields()
430 month = (dayOfYear - 6) / 30; in handleComputeFields()
432 dayOfMonth = dayOfYear - MONTH_COUNT[month][2] + 1; in handleComputeFields()
433 ++dayOfYear; // Make it 1-based now in handleComputeFields()
440 internalSet(DAY_OF_YEAR, dayOfYear); in handleComputeFields()
DGregorianCalendar.java759 int eyear, month, dayOfMonth, dayOfYear; in handleComputeFields() local
764 dayOfYear = getGregorianDayOfYear(); in handleComputeFields()
774 dayOfYear = (int)(julianEpochDay - january1); // 0-based in handleComputeFields()
787 if (dayOfYear >= march1) { in handleComputeFields()
790 month = (12 * (dayOfYear + correction) + 6) / 367; // zero-based month in handleComputeFields()
791 dayOfMonth = dayOfYear - MONTH_COUNT[month][isLeap?3:2] + 1; // one-based DOM in handleComputeFields()
792 ++dayOfYear; in handleComputeFields()
796 internalSet(DAY_OF_YEAR, dayOfYear); in handleComputeFields()
DHebrewCalendar.java799 int dayOfYear = (int)(d - ys); in handleComputeFields() local
802 while (dayOfYear < 1) { in handleComputeFields()
805 dayOfYear = (int)(d - ys); in handleComputeFields()
813 while (dayOfYear > monthStart[month][yearType]) { in handleComputeFields()
817 int dayOfMonth = dayOfYear - monthStart[month][yearType]; in handleComputeFields()
824 internalSet(DAY_OF_YEAR, dayOfYear); in handleComputeFields()
DSimpleDateRule.java125 int dayOfYear = c.get(Calendar.DAY_OF_YEAR); in isOn() local
132 return c.get(Calendar.DAY_OF_YEAR) == dayOfYear; in isOn()
DEasterHoliday.java188 int dayOfYear = calendar.get(Calendar.DAY_OF_YEAR); in isOn() local
192 return calendar.get(Calendar.DAY_OF_YEAR) == dayOfYear; in isOn()
DCalendar.java5082 int year, month, dayOfMonth, dayOfYear; in computeGregorianFields() local
5097 dayOfYear = rem[0]; // zero-based day of year in computeGregorianFields()
5099 dayOfYear = 365; // Dec 31 at end of 4- or 400-yr cycle in computeGregorianFields()
5109 if (dayOfYear >= march1) correction = isLeap ? 1 : 2; in computeGregorianFields()
5110 month = (12 * (dayOfYear + correction) + 6) / 367; // zero-based month in computeGregorianFields()
5111 dayOfMonth = dayOfYear - in computeGregorianFields()
5117 gregorianDayOfYear = dayOfYear + 1; // Convert from 0-based to 1-based in computeGregorianFields()
5143 int dayOfYear = fields[DAY_OF_YEAR]; in computeWeekFields() local
5156 int relDowJan1 = (dayOfWeek - dayOfYear + 7001 - getFirstDayOfWeek()) % 7; // 0..6 in computeWeekFields()
5157 int woy = (dayOfYear - 1 + relDowJan1) / 7; // 0..53 in computeWeekFields()
[all …]
DIslamicCalendar.java845 int year =0, month=0, dayOfMonth=0, dayOfYear=0; in handleComputeFields() local
913 dayOfYear = (int)(days - monthStart(year, 0) + 1); in handleComputeFields()
921 internalSet(DAY_OF_YEAR, dayOfYear); in handleComputeFields()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DPersianCalendar.java423 int year, month, dayOfMonth, dayOfYear; in handleComputeFields() local
429 dayOfYear = (int)(daysSinceEpoch - farvardin1); // 0-based in handleComputeFields()
430 if (dayOfYear < 216) { // Compute 0-based month in handleComputeFields()
431 month = dayOfYear / 31; in handleComputeFields()
433 month = (dayOfYear - 6) / 30; in handleComputeFields()
435 dayOfMonth = dayOfYear - MONTH_COUNT[month][2] + 1; in handleComputeFields()
436 ++dayOfYear; // Make it 1-based now in handleComputeFields()
443 internalSet(DAY_OF_YEAR, dayOfYear); in handleComputeFields()
DGregorianCalendar.java734 int eyear, month, dayOfMonth, dayOfYear; in handleComputeFields() local
739 dayOfYear = getGregorianDayOfYear(); in handleComputeFields()
749 dayOfYear = (int)(julianEpochDay - january1); // 0-based in handleComputeFields()
762 if (dayOfYear >= march1) { in handleComputeFields()
765 month = (12 * (dayOfYear + correction) + 6) / 367; // zero-based month in handleComputeFields()
766 dayOfMonth = dayOfYear - MONTH_COUNT[month][isLeap?3:2] + 1; // one-based DOM in handleComputeFields()
767 ++dayOfYear; in handleComputeFields()
771 internalSet(DAY_OF_YEAR, dayOfYear); in handleComputeFields()
DHebrewCalendar.java773 int dayOfYear = (int)(d - ys); in handleComputeFields() local
776 while (dayOfYear < 1) { in handleComputeFields()
779 dayOfYear = (int)(d - ys); in handleComputeFields()
787 while (dayOfYear > monthStart[month][yearType]) { in handleComputeFields()
791 int dayOfMonth = dayOfYear - monthStart[month][yearType]; in handleComputeFields()
798 internalSet(DAY_OF_YEAR, dayOfYear); in handleComputeFields()
DSimpleDateRule.java121 int dayOfYear = c.get(Calendar.DAY_OF_YEAR); in isOn() local
128 return c.get(Calendar.DAY_OF_YEAR) == dayOfYear; in isOn()
DEasterHoliday.java174 int dayOfYear = calendar.get(Calendar.DAY_OF_YEAR); in isOn() local
178 return calendar.get(Calendar.DAY_OF_YEAR) == dayOfYear; in isOn()
DCalendar.java4917 int year, month, dayOfMonth, dayOfYear; in computeGregorianFields() local
4932 dayOfYear = rem[0]; // zero-based day of year in computeGregorianFields()
4934 dayOfYear = 365; // Dec 31 at end of 4- or 400-yr cycle in computeGregorianFields()
4944 if (dayOfYear >= march1) correction = isLeap ? 1 : 2; in computeGregorianFields()
4945 month = (12 * (dayOfYear + correction) + 6) / 367; // zero-based month in computeGregorianFields()
4946 dayOfMonth = dayOfYear - in computeGregorianFields()
4952 gregorianDayOfYear = dayOfYear + 1; // Convert from 0-based to 1-based in computeGregorianFields()
4978 int dayOfYear = fields[DAY_OF_YEAR]; in computeWeekFields() local
4991 int relDowJan1 = (dayOfWeek - dayOfYear + 7001 - getFirstDayOfWeek()) % 7; // 0..6 in computeWeekFields()
4992 int woy = (dayOfYear - 1 + relDowJan1) / 7; // 0..53 in computeWeekFields()
[all …]
DIslamicCalendar.java812 int year =0, month=0, dayOfMonth=0, dayOfYear=0; in handleComputeFields() local
880 dayOfYear = (int)(days - monthStart(year, 0) + 1); in handleComputeFields()
888 internalSet(DAY_OF_YEAR, dayOfYear); in handleComputeFields()
/external/icu/icu4c/source/i18n/
Dpersncal.cpp213 int32_t year, month, dayOfMonth, dayOfYear; in handleComputeFields() local
219 dayOfYear = (daysSinceEpoch - farvardin1); // 0-based in handleComputeFields()
220 if (dayOfYear < 216) { // Compute 0-based month in handleComputeFields()
221 month = dayOfYear / 31; in handleComputeFields()
223 month = (dayOfYear - 6) / 30; in handleComputeFields()
225 dayOfMonth = dayOfYear - kPersianNumDays[month] + 1; in handleComputeFields()
226 ++dayOfYear; // Make it 1-based now in handleComputeFields()
233 internalSet(UCAL_DAY_OF_YEAR, dayOfYear); in handleComputeFields()
Dgregocal.cpp369 int32_t eyear, month, dayOfMonth, dayOfYear, unusedRemainder; in handleComputeFields() local
385 dayOfYear = getGregorianDayOfYear(); in handleComputeFields()
395 dayOfYear = (julianEpochDay - january1); // 0-based in handleComputeFields()
408 if (dayOfYear >= march1) { in handleComputeFields()
411 month = (12 * (dayOfYear + correction) + 6) / 367; // zero-based month in handleComputeFields()
412 dayOfMonth = dayOfYear - (isLeap?kLeapNumDays[month]:kNumDays[month]) + 1; // one-based DOM in handleComputeFields()
413 ++dayOfYear; in handleComputeFields()
421 __FILE__, __LINE__, dayOfYear, getGregorianDayOfYear(), fCutoverJulianDay); in handleComputeFields()
432 __FILE__, __LINE__,gregShift, dayOfYear, dayOfYear+gregShift, fCutoverJulianDay); in handleComputeFields()
434 dayOfYear += gregShift; in handleComputeFields()
[all …]
Dhebrwcal.cpp572 int32_t dayOfYear = (d - ys); in handleComputeFields() local
575 while (dayOfYear < 1) { in handleComputeFields()
578 dayOfYear = (d - ys); in handleComputeFields()
587 …while (month < momax && dayOfYear > ( isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month]… in handleComputeFields()
604 … int dayOfMonth = dayOfYear - (isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month][type]); in handleComputeFields()
611 internalSet(UCAL_DAY_OF_YEAR, dayOfYear); in handleComputeFields()
Dislamcal.cpp608 int32_t year, month, dayOfMonth, dayOfYear; in handleComputeFields() local
685 dayOfYear = (days - monthStart(year, 0)) + 1; in handleComputeFields()
693 internalSet(UCAL_DAY_OF_YEAR, dayOfYear); in handleComputeFields()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DGrego.java133 int dayOfYear = (int)rem[0]; in dayToFields() local
135 dayOfYear = 365; // Dec 31 at end of 4- or 400-yr cycle in dayToFields()
144 if (dayOfYear >= march1) { in dayToFields()
147 int month = (12 * (dayOfYear + correction) + 6) / 367; // zero-based month in dayToFields()
148 int dayOfMonth = dayOfYear - DAYS_BEFORE[isLeap ? month + 12 : month] + 1; // one-based DOM in dayToFields()
153 dayOfYear++; // 1-based day of year in dayToFields()
159 fields[4] = dayOfYear; in dayToFields()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DGrego.java131 int dayOfYear = (int)rem[0]; in dayToFields() local
133 dayOfYear = 365; // Dec 31 at end of 4- or 400-yr cycle in dayToFields()
142 if (dayOfYear >= march1) { in dayToFields()
145 int month = (12 * (dayOfYear + correction) + 6) / 367; // zero-based month in dayToFields()
146 int dayOfMonth = dayOfYear - DAYS_BEFORE[isLeap ? month + 12 : month] + 1; // one-based DOM in dayToFields()
151 dayOfYear++; // 1-based day of year in dayToFields()
157 fields[4] = dayOfYear; in dayToFields()
/external/icu/icu4c/source/data/locales/
Dce.txt480 dayOfYear{
483 dayOfYear-narrow{
486 dayOfYear-short{
Dde_CH.txt53 dayOfYear-short{
Dti.txt705 dayOfYear{
708 dayOfYear-narrow{
711 dayOfYear-short{
Dkok.txt785 dayOfYear{
788 dayOfYear-narrow{
791 dayOfYear-short{
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/
DTracezZPageHandler.java373 int dayOfYear = calendar.get(Calendar.DAY_OF_YEAR); in emitSingleSpan() local
374 if (dayOfYear == lastEntryDayOfYear) { in emitSingleSpan()
382 lastEntryDayOfYear = dayOfYear; in emitSingleSpan()

123456