Home
last modified time | relevance | path

Searched refs:dow (Results 1 – 25 of 77) sorted by relevance

1234

/third_party/skia/third_party/externals/icu/source/i18n/
Dgregoimp.cpp100 int32_t& dom, int32_t& dow, int32_t& doy) { in dayToFields() argument
123 dow = (int32_t) uprv_fmod(day + 1, 7); in dayToFields()
124 dow += (dow < 0) ? (UCAL_SUNDAY + 7) : UCAL_SUNDAY; in dayToFields()
138 int32_t& dom, int32_t& dow, int32_t& doy, int32_t& mid) { in timeToFields() argument
142 dayToFields(day, year, month, dom, dow, doy); in timeToFields()
146 int32_t dow; in dayOfWeek() local
147 ClockMath::floorDivide(day + UCAL_THURSDAY, 7, dow); in dayOfWeek()
148 return (dow == 0) ? UCAL_SATURDAY : dow; in dayOfWeek()
Dgregoimp.h194 int32_t& dom, int32_t& dow, int32_t& doy);
206 int32_t& dom, int32_t& dow);
220 int32_t& dom, int32_t& dow, int32_t& doy, int32_t& mid);
287 int32_t& dom, int32_t& dow) { in dayToFields() argument
289 dayToFields(day,year,month,dom,dow,doy_unused); in dayToFields()
Dbasictz.cpp163 int32_t year, month, dom, dow, doy, mid; in getSimpleRulesNear() local
168 year, month, dom, dow, doy, mid); in getSimpleRulesNear()
171 … DateTimeRule *dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); in getSimpleRulesNear()
195 year, month, dom, dow, doy, mid); in getSimpleRulesNear()
198 … dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); in getSimpleRulesNear()
226 year, month, dom, dow, doy, mid); in getSimpleRulesNear()
228 … dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); in getSimpleRulesNear()
481 int32_t year, month, dom, dow, doy, mid; in getTimeZoneRulesAfter() local
482 Grego::timeToFields(tzt.getTime(), year, month, dom, dow, doy, mid); in getTimeZoneRulesAfter()
Dolsontz.cpp332 int32_t dom, uint8_t dow, in getOffset() argument
340 return getOffset(era, year, month, dom, dow, millis, in getOffset()
350 int32_t dom, uint8_t dow, in getOffset() argument
362 || dow < UCAL_SUNDAY in getOffset()
363 || dow > UCAL_SATURDAY in getOffset()
377 return finalZone->getOffset(era, year, month, dom, dow, in getOffset()
440 int32_t year, month, dom, dow; in printTime() local
444 Grego::dayToFields(days, year, month, dom, dow); in printTime()
572 int32_t year, month, dom, dow, doy, mid; in useDaylightTime() local
573 Grego::timeToFields(current, year, month, dom, dow, doy, mid); in useDaylightTime()
Dtzrule.cpp301 int32_t dow = Grego::dayOfWeek(ruleDay); in getStartInYear() local
302 int32_t delta = fDateTimeRule->getRuleDayOfWeek() - dow; in getStartInYear()
358 int32_t year, month, dom, dow, doy, mid; in getNextStart() local
359 Grego::timeToFields(base, year, month, dom, dow, doy, mid); in getNextStart()
382 int32_t year, month, dom, dow, doy, mid; in getPreviousStart() local
383 Grego::timeToFields(base, year, month, dom, dow, doy, mid); in getPreviousStart()
Dvtzone.cpp192 int32_t year, month, dom, dow, doy, mid; in getDateTimeString() local
193 Grego::timeToFields(time, year, month, dom, dow, doy, mid); in getDateTimeString()
382 static void parseRRULE(const UnicodeString& rrule, int32_t& month, int32_t& dow, int32_t& wim, in parseRRULE() argument
390 dow = 0; in parseRRULE()
477 dow = wday + 1; in parseRRULE()
821 int32_t month = -1, dom = 0, dow = 0; in toWallTimeRule() local
834 dow = rule->getRuleDayOfWeek(); in toWallTimeRule()
862 dow += dshift; in toWallTimeRule()
863 if (dow < UCAL_SUNDAY) { in toWallTimeRule()
864 dow = UCAL_SATURDAY; in toWallTimeRule()
[all …]
Dcalendar.cpp1600 int32_t dow = julianDayToDayOfWeek(julianDay); in computeGregorianAndDOWFields() local
1601 internalSet(UCAL_DAY_OF_WEEK,dow); in computeGregorianAndDOWFields()
1604 int32_t dowLocal = dow - getFirstDayOfWeek() + 1; in computeGregorianAndDOWFields()
1918 int32_t dow = internalGet(UCAL_DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
1919 if (dow < 0) dow += 7; in roll()
1923 int32_t fdm = (dow - internalGet(UCAL_DAY_OF_MONTH) + 1) % 7; in roll()
1939 int32_t ldm = (monthLen - internalGet(UCAL_DAY_OF_MONTH) + dow) % 7; in roll()
1976 int32_t dow = internalGet(UCAL_DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
1977 if (dow < 0) dow += 7; in roll()
1981 int32_t fdy = (dow - internalGet(UCAL_DAY_OF_YEAR) + 1) % 7; in roll()
[all …]
/third_party/node/deps/icu-small/source/i18n/
Dgregoimp.cpp110 int32_t& dom, int32_t& dow, int32_t& doy) { in dayToFields() argument
133 dow = (int32_t) uprv_fmod(day + 1, 7); in dayToFields()
134 dow += (dow < 0) ? (UCAL_SUNDAY + 7) : UCAL_SUNDAY; in dayToFields()
148 int32_t& dom, int32_t& dow, int32_t& doy, int32_t& mid) { in timeToFields() argument
152 dayToFields(day, year, month, dom, dow, doy); in timeToFields()
156 int32_t dow; in dayOfWeek() local
157 ClockMath::floorDivide(day + int{UCAL_THURSDAY}, 7, &dow); in dayOfWeek()
158 return (dow == 0) ? UCAL_SATURDAY : dow; in dayOfWeek()
Dgregoimp.h194 int32_t& dom, int32_t& dow, int32_t& doy);
206 int32_t& dom, int32_t& dow);
220 int32_t& dom, int32_t& dow, int32_t& doy, int32_t& mid);
287 int32_t& dom, int32_t& dow) { in dayToFields() argument
289 dayToFields(day,year,month,dom,dow,doy_unused); in dayToFields()
Dbasictz.cpp163 int32_t year, month, dom, dow, doy, mid; in getSimpleRulesNear() local
168 year, month, dom, dow, doy, mid); in getSimpleRulesNear()
171 … DateTimeRule *dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); in getSimpleRulesNear()
195 year, month, dom, dow, doy, mid); in getSimpleRulesNear()
198 … dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); in getSimpleRulesNear()
226 year, month, dom, dow, doy, mid); in getSimpleRulesNear()
228 … dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); in getSimpleRulesNear()
486 int32_t year, month, dom, dow, doy, mid; in getTimeZoneRulesAfter() local
487 Grego::timeToFields(tzt.getTime(), year, month, dom, dow, doy, mid); in getTimeZoneRulesAfter()
Dolsontz.cpp332 int32_t dom, uint8_t dow, in getOffset() argument
340 return getOffset(era, year, month, dom, dow, millis, in getOffset()
350 int32_t dom, uint8_t dow, in getOffset() argument
362 || dow < UCAL_SUNDAY in getOffset()
363 || dow > UCAL_SATURDAY in getOffset()
377 return finalZone->getOffset(era, year, month, dom, dow, in getOffset()
439 int32_t year, month, dom, dow; in printTime() local
443 Grego::dayToFields(days, year, month, dom, dow); in printTime()
571 int32_t year, month, dom, dow, doy, mid; in useDaylightTime() local
572 Grego::timeToFields(current, year, month, dom, dow, doy, mid); in useDaylightTime()
Dtzrule.cpp301 int32_t dow = Grego::dayOfWeek(ruleDay); in getStartInYear() local
302 int32_t delta = fDateTimeRule->getRuleDayOfWeek() - dow; in getStartInYear()
358 int32_t year, month, dom, dow, doy, mid; in getNextStart() local
359 Grego::timeToFields(base, year, month, dom, dow, doy, mid); in getNextStart()
382 int32_t year, month, dom, dow, doy, mid; in getPreviousStart() local
383 Grego::timeToFields(base, year, month, dom, dow, doy, mid); in getPreviousStart()
Dvtzone.cpp184 int32_t year, month, dom, dow, doy, mid; in getDateTimeString() local
185 Grego::timeToFields(time, year, month, dom, dow, doy, mid); in getDateTimeString()
374 static void parseRRULE(const UnicodeString& rrule, int32_t& month, int32_t& dow, int32_t& wim, in parseRRULE() argument
382 dow = 0; in parseRRULE()
469 dow = wday + 1; in parseRRULE()
813 int32_t month = -1, dom = 0, dow = 0; in toWallTimeRule() local
826 dow = rule->getRuleDayOfWeek(); in toWallTimeRule()
854 dow += dshift; in toWallTimeRule()
855 if (dow < UCAL_SUNDAY) { in toWallTimeRule()
856 dow = UCAL_SATURDAY; in toWallTimeRule()
[all …]
Dcalendar.cpp1545 int32_t dow = julianDayToDayOfWeek(julianDay); in computeGregorianAndDOWFields() local
1546 internalSet(UCAL_DAY_OF_WEEK,dow); in computeGregorianAndDOWFields()
1549 int32_t dowLocal = dow - getFirstDayOfWeek() + 1; in computeGregorianAndDOWFields()
1882 int32_t dow = internalGet(UCAL_DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
1883 if (dow < 0) dow += 7; in roll()
1887 int32_t fdm = (dow - internalGet(UCAL_DAY_OF_MONTH) + 1) % 7; in roll()
1903 int32_t ldm = (monthLen - internalGet(UCAL_DAY_OF_MONTH) + dow) % 7; in roll()
1940 int32_t dow = internalGet(UCAL_DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
1941 if (dow < 0) dow += 7; in roll()
1945 int32_t fdy = (dow - internalGet(UCAL_DAY_OF_YEAR) + 1) % 7; in roll()
[all …]
/third_party/icu/icu4c/source/i18n/
Dgregoimp.cpp105 int32_t& dom, int32_t& dow, int32_t& doy) { in dayToFields() argument
128 dow = (int32_t) uprv_fmod(day + 1, 7); in dayToFields()
129 dow += (dow < 0) ? (UCAL_SUNDAY + 7) : UCAL_SUNDAY; in dayToFields()
143 int32_t& dom, int32_t& dow, int32_t& doy, int32_t& mid) { in timeToFields() argument
147 dayToFields(day, year, month, dom, dow, doy); in timeToFields()
151 int32_t dow; in dayOfWeek() local
152 ClockMath::floorDivide(day + int{UCAL_THURSDAY}, 7, &dow); in dayOfWeek()
153 return (dow == 0) ? UCAL_SATURDAY : dow; in dayOfWeek()
Dgregoimp.h194 int32_t& dom, int32_t& dow, int32_t& doy);
206 int32_t& dom, int32_t& dow);
220 int32_t& dom, int32_t& dow, int32_t& doy, int32_t& mid);
287 int32_t& dom, int32_t& dow) { in dayToFields() argument
289 dayToFields(day,year,month,dom,dow,doy_unused); in dayToFields()
Dbasictz.cpp163 int32_t year, month, dom, dow, doy, mid; in getSimpleRulesNear() local
168 year, month, dom, dow, doy, mid); in getSimpleRulesNear()
171 … DateTimeRule *dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); in getSimpleRulesNear()
195 year, month, dom, dow, doy, mid); in getSimpleRulesNear()
198 … dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); in getSimpleRulesNear()
226 year, month, dom, dow, doy, mid); in getSimpleRulesNear()
228 … dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); in getSimpleRulesNear()
486 int32_t year, month, dom, dow, doy, mid; in getTimeZoneRulesAfter() local
487 Grego::timeToFields(tzt.getTime(), year, month, dom, dow, doy, mid); in getTimeZoneRulesAfter()
Dolsontz.cpp332 int32_t dom, uint8_t dow, in getOffset() argument
340 return getOffset(era, year, month, dom, dow, millis, in getOffset()
350 int32_t dom, uint8_t dow, in getOffset() argument
362 || dow < UCAL_SUNDAY in getOffset()
363 || dow > UCAL_SATURDAY in getOffset()
377 return finalZone->getOffset(era, year, month, dom, dow, in getOffset()
439 int32_t year, month, dom, dow; in printTime() local
443 Grego::dayToFields(days, year, month, dom, dow); in printTime()
571 int32_t year, month, dom, dow, doy, mid; in useDaylightTime() local
572 Grego::timeToFields(current, year, month, dom, dow, doy, mid); in useDaylightTime()
Dtzrule.cpp301 int32_t dow = Grego::dayOfWeek(ruleDay); in getStartInYear() local
302 int32_t delta = fDateTimeRule->getRuleDayOfWeek() - dow; in getStartInYear()
358 int32_t year, month, dom, dow, doy, mid; in getNextStart() local
359 Grego::timeToFields(base, year, month, dom, dow, doy, mid); in getNextStart()
382 int32_t year, month, dom, dow, doy, mid; in getPreviousStart() local
383 Grego::timeToFields(base, year, month, dom, dow, doy, mid); in getPreviousStart()
Dvtzone.cpp184 int32_t year, month, dom, dow, doy, mid; in getDateTimeString() local
185 Grego::timeToFields(time, year, month, dom, dow, doy, mid); in getDateTimeString()
374 static void parseRRULE(const UnicodeString& rrule, int32_t& month, int32_t& dow, int32_t& wim, in parseRRULE() argument
382 dow = 0; in parseRRULE()
469 dow = wday + 1; in parseRRULE()
813 int32_t month = -1, dom = 0, dow = 0; in toWallTimeRule() local
826 dow = rule->getRuleDayOfWeek(); in toWallTimeRule()
854 dow += dshift; in toWallTimeRule()
855 if (dow < UCAL_SUNDAY) { in toWallTimeRule()
856 dow = UCAL_SATURDAY; in toWallTimeRule()
[all …]
Dcalendar.cpp1659 int32_t dow = julianDayToDayOfWeek(julianDay); in computeGregorianAndDOWFields() local
1660 internalSet(UCAL_DAY_OF_WEEK,dow); in computeGregorianAndDOWFields()
1663 int32_t dowLocal = dow - getFirstDayOfWeek() + 1; in computeGregorianAndDOWFields()
1992 int32_t dow = internalGet(UCAL_DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
1993 if (dow < 0) dow += 7; in roll()
1997 int32_t fdm = (dow - internalGet(UCAL_DAY_OF_MONTH) + 1) % 7; in roll()
2013 int32_t ldm = (monthLen - internalGet(UCAL_DAY_OF_MONTH) + dow) % 7; in roll()
2050 int32_t dow = internalGet(UCAL_DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
2051 if (dow < 0) dow += 7; in roll()
2055 int32_t fdy = (dow - internalGet(UCAL_DAY_OF_YEAR) + 1) % 7; in roll()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DTestCase.java72 public static String dowToString(int dow) { in dowToString() argument
73 --dow; in dowToString()
74 return (dow < 0 || dow > 6) ? in dowToString()
75 ("<DOW " + dow + ">") : DOW_NAMES[dow]; in dowToString()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/calendar/
DTestCase.java75 public static String dowToString(int dow) { in dowToString() argument
76 --dow; in dowToString()
77 return (dow < 0 || dow > 6) ? in dowToString()
78 ("<DOW " + dow + ">") : DOW_NAMES[dow]; in dowToString()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DCalendar.java2516 int dow = firstDayOfWeek; in prepareGetActual() local
2518 dow = (dow + 6) % 7; // set to last DOW in prepareGetActual()
2519 if (dow < SUNDAY) { in prepareGetActual()
2520 dow += 7; in prepareGetActual()
2523 set(DAY_OF_WEEK, dow); in prepareGetActual()
2864 int dow = internalGet(DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
2865 if (dow < 0) dow += 7; in roll()
2869 int fdm = (dow - internalGet(DAY_OF_MONTH) + 1) % 7; in roll()
2885 int ldm = (monthLen - internalGet(DAY_OF_MONTH) + dow) % 7; in roll()
2922 int dow = internalGet(DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DCalendar.java2612 int dow = firstDayOfWeek; in prepareGetActual() local
2614 dow = (dow + 6) % 7; // set to last DOW in prepareGetActual()
2615 if (dow < SUNDAY) { in prepareGetActual()
2616 dow += 7; in prepareGetActual()
2619 set(DAY_OF_WEEK, dow); in prepareGetActual()
2962 int dow = internalGet(DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
2963 if (dow < 0) dow += 7; in roll()
2967 int fdm = (dow - internalGet(DAY_OF_MONTH) + 1) % 7; in roll()
2983 int ldm = (monthLen - internalGet(DAY_OF_MONTH) + dow) % 7; in roll()
3020 int dow = internalGet(DAY_OF_WEEK) - getFirstDayOfWeek(); in roll() local
[all …]

1234