Home
last modified time | relevance | path

Searched refs:DateTimeRule (Results 1 – 24 of 24) sorted by relevance

/external/icu/icu4c/source/i18n/
Ddtrule.cpp18 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DateTimeRule) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
20 DateTimeRule::DateTimeRule(int32_t month, in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
25 fDateRuleType(DateTimeRule::DOM), fTimeRuleType(timeType) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
28 DateTimeRule::DateTimeRule(int32_t month, in DateTimeRule() function in DateTimeRule
34 fDateRuleType(DateTimeRule::DOW), fTimeRuleType(timeType) { in DateTimeRule()
37 DateTimeRule::DateTimeRule(int32_t month, in DateTimeRule() function in DateTimeRule
47 fDateRuleType = DateTimeRule::DOW_GEQ_DOM; in DateTimeRule()
49 fDateRuleType = DateTimeRule::DOW_LEQ_DOM; in DateTimeRule()
53 DateTimeRule::DateTimeRule(const DateTimeRule& source) in DateTimeRule() function in DateTimeRule
60 DateTimeRule::~DateTimeRule() { in ~DateTimeRule()
[all …]
Dtzrule.cpp184 const DateTimeRule& dateTimeRule, in AnnualTimeZoneRule()
187 : TimeZoneRule(name, rawOffset, dstSavings), fDateTimeRule(new DateTimeRule(dateTimeRule)), in AnnualTimeZoneRule()
194 DateTimeRule* dateTimeRule, in AnnualTimeZoneRule()
202 : TimeZoneRule(source), fDateTimeRule(new DateTimeRule(*(source.fDateTimeRule))), in AnnualTimeZoneRule()
246 const DateTimeRule*
270 DateTimeRule::DateRuleType type = fDateTimeRule->getDateRuleType(); in getStartInYear()
271 if (type == DateTimeRule::DOM) { in getStartInYear()
275 if (type == DateTimeRule::DOW) { in getStartInYear()
290 if (type == DateTimeRule::DOW_LEQ_DOM) { in getStartInYear()
310 if (fDateTimeRule->getTimeRuleType() != DateTimeRule::UTC_TIME) { in getStartInYear()
[all …]
Dsimpletz.cpp1106 DateTimeRule* dtRule; in initTransitionRules()
1107 DateTimeRule::TimeRuleType timeRuleType; in initTransitionRules()
1111 timeRuleType = (startTimeMode == STANDARD_TIME) ? DateTimeRule::STANDARD_TIME : in initTransitionRules()
1112 ((startTimeMode == UTC_TIME) ? DateTimeRule::UTC_TIME : DateTimeRule::WALL_TIME); in initTransitionRules()
1115 dtRule = new DateTimeRule(startMonth, startDay, startTime, timeRuleType); in initTransitionRules()
1118 … dtRule = new DateTimeRule(startMonth, startDay, startDayOfWeek, startTime, timeRuleType); in initTransitionRules()
1121 … dtRule = new DateTimeRule(startMonth, startDay, startDayOfWeek, true, startTime, timeRuleType); in initTransitionRules()
1124 … dtRule = new DateTimeRule(startMonth, startDay, startDayOfWeek, false, startTime, timeRuleType); in initTransitionRules()
1150 timeRuleType = (endTimeMode == STANDARD_TIME) ? DateTimeRule::STANDARD_TIME : in initTransitionRules()
1151 ((endTimeMode == UTC_TIME) ? DateTimeRule::UTC_TIME : DateTimeRule::WALL_TIME); in initTransitionRules()
[all …]
Ddangical.cpp110 …e(UNICODE_STRING_SIMPLE("Korean 1897"), 7*kOneHour, 0, millis1897, 1, DateTimeRule::STANDARD_TIME); in initDangiCalZoneAstroCalc()
111 …CODE_STRING_SIMPLE("Korean 1898-1911"), 8*kOneHour, 0, millis1898, 1, DateTimeRule::STANDARD_TIME); in initDangiCalZoneAstroCalc()
112 …(UNICODE_STRING_SIMPLE("Korean 1912-"), 9*kOneHour, 0, millis1912, 1, DateTimeRule::STANDARD_TIME); in initDangiCalZoneAstroCalc()
Dbasictz.cpp169DateTimeRule *dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); in getSimpleRulesNear()
196 … dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); in getSimpleRulesNear()
226 … dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); in getSimpleRulesNear()
426 DateTimeRule::TimeRuleType timeType; in getTimeZoneRulesAfter()
433 if (timeType == DateTimeRule::STANDARD_TIME) { in getTimeZoneRulesAfter()
436 if (timeType == DateTimeRule::WALL_TIME) { in getTimeZoneRulesAfter()
Dvtzone.cpp535 DateTimeRule *adtr = NULL; in createRuleByRRULE()
705 adtr = new DateTimeRule(month, dayOfMonth, startMID, DateTimeRule::WALL_TIME); in createRuleByRRULE()
708 adtr = new DateTimeRule(month, nthDayOfWeek, dayOfWeek, startMID, DateTimeRule::WALL_TIME); in createRuleByRRULE()
712 … adtr = new DateTimeRule(month, dayOfMonth, dayOfWeek, TRUE, startMID, DateTimeRule::WALL_TIME); in createRuleByRRULE()
737 &start, 1, DateTimeRule::UTC_TIME); in createRuleByRDATE()
755 times, size, DateTimeRule::UTC_TIME); in createRuleByRDATE()
765 …valentDateRule(int32_t month, int32_t weekInMonth, int32_t dayOfWeek, const DateTimeRule *dtrule) { in isEquivalentDateRule()
769 if (dtrule->getTimeRuleType() != DateTimeRule::WALL_TIME) { in isEquivalentDateRule()
773 if (dtrule->getDateRuleType() == DateTimeRule::DOW in isEquivalentDateRule()
778 if (dtrule->getDateRuleType() == DateTimeRule::DOW_GEQ_DOM) { in isEquivalentDateRule()
[all …]
Dwintzimpl.cpp55 U_ASSERT(std->getRule()->getDateRuleType() == DateTimeRule::DOW); in getSystemTimeInformation()
56 U_ASSERT(dst->getRule()->getDateRuleType() == DateTimeRule::DOW); in getSystemTimeInformation()
Dolsontz.cpp783 raw, dst, times, nTimes, DateTimeRule::UTC_TIME); in initTransitionRules()
849 finalZone->getRawOffset(), 0, &startTime, 1, DateTimeRule::UTC_TIME); in initTransitionRules()
/external/chromium_org/third_party/icu/source/i18n/
Ddtrule.cpp18 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DateTimeRule) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
20 DateTimeRule::DateTimeRule(int32_t month, in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
25 fDateRuleType(DateTimeRule::DOM), fTimeRuleType(timeType) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
28 DateTimeRule::DateTimeRule(int32_t month, in DateTimeRule() function in DateTimeRule
34 fDateRuleType(DateTimeRule::DOW), fTimeRuleType(timeType) { in DateTimeRule()
37 DateTimeRule::DateTimeRule(int32_t month, in DateTimeRule() function in DateTimeRule
47 fDateRuleType = DateTimeRule::DOW_GEQ_DOM; in DateTimeRule()
49 fDateRuleType = DateTimeRule::DOW_LEQ_DOM; in DateTimeRule()
53 DateTimeRule::DateTimeRule(const DateTimeRule& source) in DateTimeRule() function in DateTimeRule
60 DateTimeRule::~DateTimeRule() { in ~DateTimeRule()
[all …]
Dtzrule.cpp184 const DateTimeRule& dateTimeRule, in AnnualTimeZoneRule()
187 : TimeZoneRule(name, rawOffset, dstSavings), fDateTimeRule(new DateTimeRule(dateTimeRule)), in AnnualTimeZoneRule()
194 DateTimeRule* dateTimeRule, in AnnualTimeZoneRule()
202 : TimeZoneRule(source), fDateTimeRule(new DateTimeRule(*(source.fDateTimeRule))), in AnnualTimeZoneRule()
246 const DateTimeRule*
270 DateTimeRule::DateRuleType type = fDateTimeRule->getDateRuleType(); in getStartInYear()
271 if (type == DateTimeRule::DOM) { in getStartInYear()
275 if (type == DateTimeRule::DOW) { in getStartInYear()
290 if (type == DateTimeRule::DOW_LEQ_DOM) { in getStartInYear()
310 if (fDateTimeRule->getTimeRuleType() != DateTimeRule::UTC_TIME) { in getStartInYear()
[all …]
Dsimpletz.cpp1076 DateTimeRule* dtRule; in initTransitionRules()
1077 DateTimeRule::TimeRuleType timeRuleType; in initTransitionRules()
1081 timeRuleType = (startTimeMode == STANDARD_TIME) ? DateTimeRule::STANDARD_TIME : in initTransitionRules()
1082 ((startTimeMode == UTC_TIME) ? DateTimeRule::UTC_TIME : DateTimeRule::WALL_TIME); in initTransitionRules()
1085 dtRule = new DateTimeRule(startMonth, startDay, startTime, timeRuleType); in initTransitionRules()
1088 … dtRule = new DateTimeRule(startMonth, startDay, startDayOfWeek, startTime, timeRuleType); in initTransitionRules()
1091 … dtRule = new DateTimeRule(startMonth, startDay, startDayOfWeek, true, startTime, timeRuleType); in initTransitionRules()
1094 … dtRule = new DateTimeRule(startMonth, startDay, startDayOfWeek, false, startTime, timeRuleType); in initTransitionRules()
1120 timeRuleType = (endTimeMode == STANDARD_TIME) ? DateTimeRule::STANDARD_TIME : in initTransitionRules()
1121 ((endTimeMode == UTC_TIME) ? DateTimeRule::UTC_TIME : DateTimeRule::WALL_TIME); in initTransitionRules()
[all …]
Dvtzone.cpp535 DateTimeRule *adtr = NULL; in createRuleByRRULE()
705 adtr = new DateTimeRule(month, dayOfMonth, startMID, DateTimeRule::WALL_TIME); in createRuleByRRULE()
708 adtr = new DateTimeRule(month, nthDayOfWeek, dayOfWeek, startMID, DateTimeRule::WALL_TIME); in createRuleByRRULE()
712 … adtr = new DateTimeRule(month, dayOfMonth, dayOfWeek, TRUE, startMID, DateTimeRule::WALL_TIME); in createRuleByRRULE()
737 &start, 1, DateTimeRule::UTC_TIME); in createRuleByRDATE()
755 times, size, DateTimeRule::UTC_TIME); in createRuleByRDATE()
765 …valentDateRule(int32_t month, int32_t weekInMonth, int32_t dayOfWeek, const DateTimeRule *dtrule) { in isEquivalentDateRule()
769 if (dtrule->getTimeRuleType() != DateTimeRule::WALL_TIME) { in isEquivalentDateRule()
773 if (dtrule->getDateRuleType() == DateTimeRule::DOW in isEquivalentDateRule()
778 if (dtrule->getDateRuleType() == DateTimeRule::DOW_GEQ_DOM) { in isEquivalentDateRule()
[all …]
Dbasictz.cpp169DateTimeRule *dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); in getSimpleRulesNear()
196 … dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); in getSimpleRulesNear()
226 … dtr = new DateTimeRule(month, weekInMonth, dow, mid, DateTimeRule::WALL_TIME); in getSimpleRulesNear()
426 DateTimeRule::TimeRuleType timeType; in getTimeZoneRulesAfter()
433 if (timeType == DateTimeRule::STANDARD_TIME) { in getTimeZoneRulesAfter()
436 if (timeType == DateTimeRule::WALL_TIME) { in getTimeZoneRulesAfter()
Dwintzimpl.cpp55 U_ASSERT(std->getRule()->getDateRuleType() == DateTimeRule::DOW); in getSystemTimeInformation()
56 U_ASSERT(dst->getRule()->getDateRuleType() == DateTimeRule::DOW); in getSystemTimeInformation()
Dolsontz.cpp757 raw, dst, times, nTimes, DateTimeRule::UTC_TIME); in initTransitionRules()
823 finalZone->getRawOffset(), 0, &startTime, 1, DateTimeRule::UTC_TIME); in initTransitionRules()
/external/icu/icu4c/source/i18n/unicode/
Ddtrule.h29 class U_I18N_API DateTimeRule : public UObject {
69 DateTimeRule(int32_t month, int32_t dayOfMonth,
87 DateTimeRule(int32_t month, int32_t weekInMonth, int32_t dayOfWeek,
105 DateTimeRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, UBool after,
113 DateTimeRule(const DateTimeRule& source);
119 ~DateTimeRule();
127 DateTimeRule* clone(void) const;
134 DateTimeRule& operator=(const DateTimeRule& right);
143 UBool operator==(const DateTimeRule& that) const;
152 UBool operator!=(const DateTimeRule& that) const;
Dtzrule.h401 const DateTimeRule& dateTimeRule, int32_t startYear, int32_t endYear);
420 DateTimeRule* dateTimeRule, int32_t startYear, int32_t endYear);
474 const DateTimeRule* getRule(void) const;
578 DateTimeRule* fDateTimeRule;
636 const UDate* startTimes, int32_t numStartTimes, DateTimeRule::TimeRuleType timeRuleType);
692 DateTimeRule::TimeRuleType getTimeType(void) const;
788 DateTimeRule::TimeRuleType fTimeRuleType;
/external/chromium_org/third_party/icu/source/i18n/unicode/
Ddtrule.h29 class U_I18N_API DateTimeRule : public UObject {
69 DateTimeRule(int32_t month, int32_t dayOfMonth,
87 DateTimeRule(int32_t month, int32_t weekInMonth, int32_t dayOfWeek,
105 DateTimeRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, UBool after,
113 DateTimeRule(const DateTimeRule& source);
119 ~DateTimeRule();
127 DateTimeRule* clone(void) const;
134 DateTimeRule& operator=(const DateTimeRule& right);
143 UBool operator==(const DateTimeRule& that) const;
152 UBool operator!=(const DateTimeRule& that) const;
Dtzrule.h401 const DateTimeRule& dateTimeRule, int32_t startYear, int32_t endYear);
420 DateTimeRule* dateTimeRule, int32_t startYear, int32_t endYear);
474 const DateTimeRule* getRule(void) const;
578 DateTimeRule* fDateTimeRule;
636 const UDate* startTimes, int32_t numStartTimes, DateTimeRule::TimeRuleType timeRuleType);
692 DateTimeRule::TimeRuleType getTimeType(void) const;
788 DateTimeRule::TimeRuleType fTimeRuleType;
/external/icu/icu4c/source/test/intltest/
Dtzrulets.cpp160 DateTimeRule *dtr; in TestSimpleRuleBasedTimeZone()
171 dtr = new DateTimeRule(UCAL_SEPTEMBER, 30, UCAL_SATURDAY, FALSE, in TestSimpleRuleBasedTimeZone()
172 1*HOUR, DateTimeRule::WALL_TIME); // SUN<=30 in September, at 1AM wall time in TestSimpleRuleBasedTimeZone()
180 dtr = new DateTimeRule(UCAL_FEBRUARY, 2, UCAL_SUNDAY, in TestSimpleRuleBasedTimeZone()
181 1*HOUR, DateTimeRule::WALL_TIME); // 2nd Sunday in February, at 1AM wall time in TestSimpleRuleBasedTimeZone()
196 dtr = new DateTimeRule(UCAL_SEPTEMBER, -1, UCAL_SATURDAY, in TestSimpleRuleBasedTimeZone()
197 1*HOUR, DateTimeRule::WALL_TIME); // Last Sunday in September at 1AM wall time in TestSimpleRuleBasedTimeZone()
203 dtr = new DateTimeRule(UCAL_FEBRUARY, 8, UCAL_SUNDAY, true, in TestSimpleRuleBasedTimeZone()
204 1*HOUR, DateTimeRule::WALL_TIME); // SUN>=8 in February, at 1AM wall time in TestSimpleRuleBasedTimeZone()
217 dtr = new DateTimeRule(UCAL_SEPTEMBER, 30, UCAL_SATURDAY, false, in TestSimpleRuleBasedTimeZone()
[all …]
Dtzoffloc.cpp148 DateTimeRule *dtr; in TestGetOffsetAroundTransition()
152 dtr = new DateTimeRule(UCAL_APRIL, 1, UCAL_SUNDAY, in TestGetOffsetAroundTransition()
153 2*HOUR, DateTimeRule::WALL_TIME); // 1st Sunday in April, at 2AM wall time in TestGetOffsetAroundTransition()
163 dtr = new DateTimeRule(UCAL_OCTOBER, -1, UCAL_SUNDAY, in TestGetOffsetAroundTransition()
164 … 2*HOUR, DateTimeRule::WALL_TIME); // last Sunday in October, at 2AM wall time in TestGetOffsetAroundTransition()
/external/chromium_org/third_party/icu/source/test/intltest/
Dtzrulets.cpp161 DateTimeRule *dtr; in TestSimpleRuleBasedTimeZone()
172 dtr = new DateTimeRule(UCAL_SEPTEMBER, 30, UCAL_SATURDAY, FALSE, in TestSimpleRuleBasedTimeZone()
173 1*HOUR, DateTimeRule::WALL_TIME); // SUN<=30 in September, at 1AM wall time in TestSimpleRuleBasedTimeZone()
181 dtr = new DateTimeRule(UCAL_FEBRUARY, 2, UCAL_SUNDAY, in TestSimpleRuleBasedTimeZone()
182 1*HOUR, DateTimeRule::WALL_TIME); // 2nd Sunday in February, at 1AM wall time in TestSimpleRuleBasedTimeZone()
197 dtr = new DateTimeRule(UCAL_SEPTEMBER, -1, UCAL_SATURDAY, in TestSimpleRuleBasedTimeZone()
198 1*HOUR, DateTimeRule::WALL_TIME); // Last Sunday in September at 1AM wall time in TestSimpleRuleBasedTimeZone()
204 dtr = new DateTimeRule(UCAL_FEBRUARY, 8, UCAL_SUNDAY, true, in TestSimpleRuleBasedTimeZone()
205 1*HOUR, DateTimeRule::WALL_TIME); // SUN>=8 in February, at 1AM wall time in TestSimpleRuleBasedTimeZone()
218 dtr = new DateTimeRule(UCAL_SEPTEMBER, 30, UCAL_SATURDAY, false, in TestSimpleRuleBasedTimeZone()
[all …]
Dtzoffloc.cpp148 DateTimeRule *dtr; in TestGetOffsetAroundTransition()
152 dtr = new DateTimeRule(UCAL_APRIL, 1, UCAL_SUNDAY, in TestGetOffsetAroundTransition()
153 2*HOUR, DateTimeRule::WALL_TIME); // 1st Sunday in April, at 2AM wall time in TestGetOffsetAroundTransition()
163 dtr = new DateTimeRule(UCAL_OCTOBER, -1, UCAL_SUNDAY, in TestGetOffsetAroundTransition()
164 … 2*HOUR, DateTimeRule::WALL_TIME); // last Sunday in October, at 2AM wall time in TestGetOffsetAroundTransition()
/external/chromium_org/third_party/icu/source/common/unicode/
Durename.h1902 #define DateTimeRule U_ICU_ENTRY_POINT_RENAME(DateTimeRule) macro