Home
last modified time | relevance | path

Searched refs:dayOfWeek (Results 1 – 25 of 102) sorted by relevance

12345

/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DSimpleHoliday.java109 public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name) in SimpleHoliday() argument
112 dayOfWeek > 0 ? dayOfWeek : - dayOfWeek, in SimpleHoliday()
113 dayOfWeek > 0)); in SimpleHoliday()
119 public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name, in SimpleHoliday() argument
124 dayOfWeek > 0 ? dayOfWeek : - dayOfWeek, in SimpleHoliday()
125 dayOfWeek > 0))); in SimpleHoliday()
132 public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name, in SimpleHoliday() argument
137 dayOfWeek > 0 ? dayOfWeek : - dayOfWeek, in SimpleHoliday()
138 dayOfWeek > 0))); in SimpleHoliday()
DDateTimeRule.java70 private final int dayOfWeek; field in DateTimeRule
97 this.dayOfWeek = 0; in DateTimeRule()
115 public DateTimeRule(int month, int weekInMonth, int dayOfWeek, in DateTimeRule() argument
120 this.dayOfWeek = dayOfWeek; in DateTimeRule()
143 public DateTimeRule(int month, int dayOfMonth, int dayOfWeek, boolean after, in DateTimeRule() argument
148 this.dayOfWeek = dayOfWeek; in DateTimeRule()
192 return dayOfWeek; in getRuleDayOfWeek()
243 sDate = Integer.toString(weekInMonth) + DOWSTR[dayOfWeek]; in toString()
246 sDate = DOWSTR[dayOfWeek] + ">=" + Integer.toString(dayOfMonth); in toString()
249 sDate = DOWSTR[dayOfWeek] + "<=" + Integer.toString(dayOfMonth); in toString()
DSimpleTimeZone.java306 public void setStartRule(int month, int dayOfWeekInMonth, int dayOfWeek, in setStartRule() argument
312 getSTZInfo().setStart(month, dayOfWeekInMonth, dayOfWeek, time, -1, false); in setStartRule()
313 setStartRule(month, dayOfWeekInMonth, dayOfWeek, time, WALL_TIME); in setStartRule()
354 private void setStartRule(int month, int dayOfWeekInMonth, int dayOfWeek, int time, int mode) { in setStartRule() argument
359 startDayOfWeek = dayOfWeek; in setStartRule()
403 public void setStartRule(int month, int dayOfMonth, int dayOfWeek, int time, boolean after) { in setStartRule() argument
408 getSTZInfo().setStart(month, -1, dayOfWeek, time, dayOfMonth, after); in setStartRule()
410 -dayOfWeek, time, WALL_TIME); in setStartRule()
432 public void setEndRule(int month, int dayOfWeekInMonth, int dayOfWeek, int time) { in setEndRule() argument
437 getSTZInfo().setEnd(month, dayOfWeekInMonth, dayOfWeek, time, -1, false); in setEndRule()
[all …]
DSimpleDateRule.java36 this.dayOfWeek = 0; in SimpleDateRule()
44 this.dayOfWeek = 0; in SimpleDateRule()
59 public SimpleDateRule(int month, int dayOfMonth, int dayOfWeek, boolean after) in SimpleDateRule() argument
63 this.dayOfWeek = after ? dayOfWeek : -dayOfWeek; in SimpleDateRule()
185 if (dayOfWeek != 0) { in computeInYear()
193 if (dayOfWeek > 0) { in computeInYear()
196 delta = (dayOfWeek - weekday + 7) % 7; in computeInYear()
201 delta = -((dayOfWeek + weekday + 7) % 7); in computeInYear()
222 private int dayOfWeek; field in SimpleDateRule
DVTimeZone.java81 public int getOffset(int era, int year, int month, int day, int dayOfWeek, in getOffset() argument
83 return tz.getOffset(era, year, month, day, dayOfWeek, milliseconds); in getOffset()
848 int dayOfWeek = ruleFields[1]; in createRuleByRRULE() local
857 if (ruleFields.length != 10 || month == -1 || dayOfWeek == 0) { in createRuleByRRULE()
892 if (month == -1 || dayOfWeek == 0 || dayOfMonth == 0) { in createRuleByRRULE()
938 if (fields[1] != dayOfWeek) { in createRuleByRRULE()
988 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth == 0) { in createRuleByRRULE()
1002 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth != 0) { in createRuleByRRULE()
1005 } else if (dayOfWeek != 0 && nthDayOfWeek != 0 && dayOfMonth == 0) { in createRuleByRRULE()
1007 … adtr = new DateTimeRule(month, nthDayOfWeek, dayOfWeek, timeInDay, DateTimeRule.WALL_TIME); in createRuleByRRULE()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DSimpleHoliday.java107 public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name) in SimpleHoliday() argument
110 dayOfWeek > 0 ? dayOfWeek : - dayOfWeek, in SimpleHoliday()
111 dayOfWeek > 0)); in SimpleHoliday()
117 public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name, in SimpleHoliday() argument
122 dayOfWeek > 0 ? dayOfWeek : - dayOfWeek, in SimpleHoliday()
123 dayOfWeek > 0))); in SimpleHoliday()
130 public SimpleHoliday(int month, int dayOfMonth, int dayOfWeek, String name, in SimpleHoliday() argument
135 dayOfWeek > 0 ? dayOfWeek : - dayOfWeek, in SimpleHoliday()
136 dayOfWeek > 0))); in SimpleHoliday()
DDateTimeRule.java83 private final int dayOfWeek; field in DateTimeRule
112 this.dayOfWeek = 0; in DateTimeRule()
132 public DateTimeRule(int month, int weekInMonth, int dayOfWeek, in DateTimeRule() argument
137 this.dayOfWeek = dayOfWeek; in DateTimeRule()
162 public DateTimeRule(int month, int dayOfMonth, int dayOfWeek, boolean after, in DateTimeRule() argument
167 this.dayOfWeek = dayOfWeek; in DateTimeRule()
219 return dayOfWeek; in getRuleDayOfWeek()
278 sDate = Integer.toString(weekInMonth) + DOWSTR[dayOfWeek]; in toString()
281 sDate = DOWSTR[dayOfWeek] + ">=" + Integer.toString(dayOfMonth); in toString()
284 sDate = DOWSTR[dayOfWeek] + "<=" + Integer.toString(dayOfMonth); in toString()
DSimpleTimeZone.java318 public void setStartRule(int month, int dayOfWeekInMonth, int dayOfWeek, in setStartRule() argument
324 getSTZInfo().setStart(month, dayOfWeekInMonth, dayOfWeek, time, -1, false); in setStartRule()
325 setStartRule(month, dayOfWeekInMonth, dayOfWeek, time, WALL_TIME); in setStartRule()
366 private void setStartRule(int month, int dayOfWeekInMonth, int dayOfWeek, int time, int mode) { in setStartRule() argument
371 startDayOfWeek = dayOfWeek; in setStartRule()
417 public void setStartRule(int month, int dayOfMonth, int dayOfWeek, int time, boolean after) { in setStartRule() argument
422 getSTZInfo().setStart(month, -1, dayOfWeek, time, dayOfMonth, after); in setStartRule()
424 -dayOfWeek, time, WALL_TIME); in setStartRule()
447 public void setEndRule(int month, int dayOfWeekInMonth, int dayOfWeek, int time) { in setEndRule() argument
452 getSTZInfo().setEnd(month, dayOfWeekInMonth, dayOfWeek, time, -1, false); in setEndRule()
[all …]
DSimpleDateRule.java34 this.dayOfWeek = 0; in SimpleDateRule()
42 this.dayOfWeek = 0; in SimpleDateRule()
57 public SimpleDateRule(int month, int dayOfMonth, int dayOfWeek, boolean after) in SimpleDateRule() argument
61 this.dayOfWeek = after ? dayOfWeek : -dayOfWeek; in SimpleDateRule()
187 if (dayOfWeek != 0) { in computeInYear()
195 if (dayOfWeek > 0) { in computeInYear()
198 delta = (dayOfWeek - weekday + 7) % 7; in computeInYear()
203 delta = -((dayOfWeek + weekday + 7) % 7); in computeInYear()
221 private int dayOfWeek; field in SimpleDateRule
DVTimeZone.java85 public int getOffset(int era, int year, int month, int day, int dayOfWeek, in getOffset() argument
87 return tz.getOffset(era, year, month, day, dayOfWeek, milliseconds); in getOffset()
877 int dayOfWeek = ruleFields[1]; in createRuleByRRULE() local
886 if (ruleFields.length != 10 || month == -1 || dayOfWeek == 0) { in createRuleByRRULE()
921 if (month == -1 || dayOfWeek == 0 || dayOfMonth == 0) { in createRuleByRRULE()
967 if (fields[1] != dayOfWeek) { in createRuleByRRULE()
1017 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth == 0) { in createRuleByRRULE()
1031 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth != 0) { in createRuleByRRULE()
1034 } else if (dayOfWeek != 0 && nthDayOfWeek != 0 && dayOfMonth == 0) { in createRuleByRRULE()
1036 … adtr = new DateTimeRule(month, nthDayOfWeek, dayOfWeek, timeInDay, DateTimeRule.WALL_TIME); in createRuleByRRULE()
[all …]
/third_party/icu/icu4c/source/i18n/unicode/
Dsimpletz.h315 void setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
361 void setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
409 void setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
429 void setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
454 void setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
481 void setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
529 void setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
550 void setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
574 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const override;
592 uint8_t dayOfWeek, int32_t milliseconds,
[all …]
Dvtzone.h217 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const override;
239 uint8_t dayOfWeek, int32_t millis,
406 int32_t month, int32_t weekInMonth, int32_t dayOfWeek,
410 int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
413 int32_t dayOfWeek, int32_t numDays,
417 int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
/third_party/node/deps/icu-small/source/i18n/unicode/
Dsimpletz.h315 void setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
361 void setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
409 void setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
429 void setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
454 void setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
481 void setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
529 void setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
550 void setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
574 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const override;
592 uint8_t dayOfWeek, int32_t milliseconds,
[all …]
Dvtzone.h217 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const override;
239 uint8_t dayOfWeek, int32_t millis,
406 int32_t month, int32_t weekInMonth, int32_t dayOfWeek,
410 int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
413 int32_t dayOfWeek, int32_t numDays,
417 int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
Dsimpletz.h315 void setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
361 void setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
409 void setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
429 void setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
454 void setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
481 void setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek,
529 void setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
550 void setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
574 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const;
592 uint8_t dayOfWeek, int32_t milliseconds,
[all …]
Dvtzone.h217 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const;
239 uint8_t dayOfWeek, int32_t millis,
409 int32_t month, int32_t weekInMonth, int32_t dayOfWeek,
413 int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
416 int32_t dayOfWeek, int32_t numDays,
420 int32_t month, int32_t dayOfMonth, int32_t dayOfWeek,
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DGrego.java111 public static int dayOfWeek(long day) { in dayOfWeek() method in Grego
114 int dayOfWeek = (int)remainder[0]; in dayOfWeek() local
115 dayOfWeek = (dayOfWeek == 0) ? 7 : dayOfWeek; in dayOfWeek()
116 return dayOfWeek; in dayOfWeek()
149 int dayOfWeek = (int)((day + 2) % 7); // day 0 is Monday(2) in dayToFields() local
150 if (dayOfWeek < 1 /* Sunday */) { in dayToFields()
151 dayOfWeek += 7; in dayToFields()
158 fields[3] = dayOfWeek; in dayToFields()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DGrego.java109 public static int dayOfWeek(long day) { in dayOfWeek() method in Grego
112 int dayOfWeek = (int)remainder[0]; in dayOfWeek() local
113 dayOfWeek = (dayOfWeek == 0) ? 7 : dayOfWeek; in dayOfWeek()
114 return dayOfWeek; in dayOfWeek()
147 int dayOfWeek = (int)((day + 2) % 7); // day 0 is Monday(2) in dayToFields() local
148 if (dayOfWeek < 1 /* Sunday */) { in dayToFields()
149 dayOfWeek += 7; in dayToFields()
156 fields[3] = dayOfWeek; in dayToFields()
/third_party/icu/icu4c/source/i18n/
Dsimpletz.cpp310 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, in setStartRule() argument
315 startDayOfWeek = (int8_t)dayOfWeek; in setStartRule()
334 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, in setStartRule() argument
338 -dayOfWeek, time, mode, status); in setStartRule()
362 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, in setEndRule() argument
367 endDayOfWeek = (int8_t)dayOfWeek; in setEndRule()
386 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, in setEndRule() argument
390 -dayOfWeek, time, mode, status); in setEndRule()
397 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const in getOffset() argument
411 …return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status… in getOffset()
[all …]
Ddtrule.cpp32 int32_t dayOfWeek, in DateTimeRule() argument
35 : fMonth(month), fDayOfMonth(0), fDayOfWeek(dayOfWeek), fWeekInMonth(weekInMonth), fMillisInDay(mil… in DateTimeRule()
41 int32_t dayOfWeek, in DateTimeRule() argument
46 …fMonth(month), fDayOfMonth(dayOfMonth), fDayOfWeek(dayOfWeek), fWeekInMonth(0), fMillisInDay(milli… in DateTimeRule()
/third_party/skia/third_party/externals/icu/source/i18n/
Dsimpletz.cpp310 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, in setStartRule() argument
315 startDayOfWeek = (int8_t)dayOfWeek; in setStartRule()
334 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, in setStartRule() argument
338 -dayOfWeek, time, mode, status); in setStartRule()
362 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, in setEndRule() argument
367 endDayOfWeek = (int8_t)dayOfWeek; in setEndRule()
386 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, in setEndRule() argument
390 -dayOfWeek, time, mode, status); in setEndRule()
397 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const in getOffset() argument
411 …return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status… in getOffset()
[all …]
Ddtrule.cpp32 int32_t dayOfWeek, in DateTimeRule() argument
35 : fMonth(month), fDayOfMonth(0), fDayOfWeek(dayOfWeek), fWeekInMonth(weekInMonth), fMillisInDay(mil… in DateTimeRule()
41 int32_t dayOfWeek, in DateTimeRule() argument
46 …fMonth(month), fDayOfMonth(dayOfMonth), fDayOfWeek(dayOfWeek), fWeekInMonth(0), fMillisInDay(milli… in DateTimeRule()
/third_party/node/deps/icu-small/source/i18n/
Dsimpletz.cpp310 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, in setStartRule() argument
315 startDayOfWeek = (int8_t)dayOfWeek; in setStartRule()
334 SimpleTimeZone::setStartRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, in setStartRule() argument
338 -dayOfWeek, time, mode, status); in setStartRule()
362 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfWeekInMonth, int32_t dayOfWeek, in setEndRule() argument
367 endDayOfWeek = (int8_t)dayOfWeek; in setEndRule()
386 SimpleTimeZone::setEndRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, in setEndRule() argument
390 -dayOfWeek, time, mode, status); in setEndRule()
397 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const in getOffset() argument
411 …return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status… in getOffset()
[all …]
Ddtrule.cpp32 int32_t dayOfWeek, in DateTimeRule() argument
35 : fMonth(month), fDayOfMonth(0), fDayOfWeek(dayOfWeek), fWeekInMonth(weekInMonth), fMillisInDay(mil… in DateTimeRule()
41 int32_t dayOfWeek, in DateTimeRule() argument
46 …fMonth(month), fDayOfMonth(dayOfMonth), fDayOfWeek(dayOfWeek), fWeekInMonth(0), fMillisInDay(milli… in DateTimeRule()
Dvtzone.cpp533 int32_t month, dayOfWeek, nthDayOfWeek, dayOfMonth = 0; in createRuleByRRULE() local
538 parseRRULE(rrule, month, dayOfWeek, nthDayOfWeek, days, daysCount, until, status); in createRuleByRRULE()
547 if (daysCount != 7 || month == -1 || dayOfWeek == 0) { in createRuleByRRULE()
584 if (month == -1 || dayOfWeek == 0 || daysCount == 0) { in createRuleByRRULE()
633 if (tmp_dayOfWeek != dayOfWeek) { in createRuleByRRULE()
683 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth == 0) { in createRuleByRRULE()
697 if (dayOfWeek == 0 && nthDayOfWeek == 0 && dayOfMonth != 0) { in createRuleByRRULE()
700 } else if (dayOfWeek != 0 && nthDayOfWeek != 0 && dayOfMonth == 0) { in createRuleByRRULE()
702 adtr = new DateTimeRule(month, nthDayOfWeek, dayOfWeek, startMID, DateTimeRule::WALL_TIME); in createRuleByRRULE()
703 } else if (dayOfWeek != 0 && nthDayOfWeek == 0 && dayOfMonth != 0) { in createRuleByRRULE()
[all …]

12345