Home | History | Annotate | Download | only in intltest

Lines Matching full:timeunit

76           for (TimeUnit::UTimeUnitFields j = TimeUnit::UTIMEUNIT_YEAR; 
77 j < TimeUnit::UTIMEUNIT_FIELD_COUNT;
78 j = (TimeUnit::UTimeUnitFields)(j+1)) {
123 //================= TimeUnit =================
126 TimeUnit* tmunit = TimeUnit::createInstance(TimeUnit::UTIMEUNIT_YEAR, status);
127 if (!assertSuccess("TimeUnit::createInstance", status)) return;
129 TimeUnit* another = (TimeUnit*)tmunit->clone();
130 TimeUnit third(*tmunit);
131 TimeUnit fourth = third;
136 TimeUnit* tmunit_m = TimeUnit::createInstance(TimeUnit::UTIMEUNIT_MONTH, status);
139 TimeUnit::UTimeUnitFields field = tmunit_m->getTimeUnitField();
140 assertTrue("field of month time unit is month", (field == TimeUnit::UTIMEUNIT_MONTH));
143 MeasureUnit **ptrs = new MeasureUnit *[TimeUnit::UTIMEUNIT_FIELD_COUNT];
145 ptrs[TimeUnit::UTIMEUNIT_YEAR] = MeasureUnit::createYear(status);
146 ptrs[TimeUnit::UTIMEUNIT_MONTH] = MeasureUnit::createMonth(status);
147 ptrs[TimeUnit::UTIMEUNIT_DAY] = MeasureUnit::createDay(status);
148 ptrs[TimeUnit::UTIMEUNIT_WEEK] = MeasureUnit::createWeek(status);
149 ptrs[TimeUnit::UTIMEUNIT_HOUR] = MeasureUnit::createHour(status);
150 ptrs[TimeUnit::UTIMEUNIT_MINUTE] = MeasureUnit::createMinute(status);
151 ptrs[TimeUnit::UTIMEUNIT_SECOND] = MeasureUnit::createSecond(status);
152 if (!assertSuccess("TimeUnit::createInstance", status)) return;
154 for (TimeUnit::UTimeUnitFields j = TimeUnit::UTIMEUNIT_YEAR;
155 j < TimeUnit::UTIMEUNIT_FIELD_COUNT;
156 j = (TimeUnit::UTimeUnitFields)(j+1)) {
157 MeasureUnit *ptr = TimeUnit::createInstance(j, status);
158 if (!assertSuccess("TimeUnit::createInstance", status)) return;
160 // differing types (TimeUnit vs. MeasureUnit).
169 for (int i = 0; i < TimeUnit::UTIMEUNIT_FIELD_COUNT; ++i) {
178 TimeUnitAmount tma_long(formattable, TimeUnit::UTIMEUNIT_DAY, status);
182 TimeUnitAmount tma_double(formattable, TimeUnit::UTIMEUNIT_DAY, status);
186 TimeUnitAmount tma_double_3(formattable, TimeUnit::UTIMEUNIT_DAY, status);
189 TimeUnitAmount tma(2, TimeUnit::UTIMEUNIT_DAY, status);
192 TimeUnitAmount tma_h(2, TimeUnit::UTIMEUNIT_HOUR, status);
206 assertTrue("getTimeUnitField", (tma.getTimeUnitField() == TimeUnit::UTIMEUNIT_DAY));
266 TimeUnit::UTimeUnitFields tunits[] = {TimeUnit::UTIMEUNIT_SECOND, TimeUnit::UTIMEUNIT_MINUTE, TimeUnit::UTIMEUNIT_HOUR, TimeUnit::UTIMEUNIT_DAY, TimeUnit::UTIMEUNIT_MONTH, TimeUnit::UTIMEUNIT_YEAR};
437 LocalPointer<TimeUnitAmount> tamt(new TimeUnitAmount(values[j], TimeUnit::UTIMEUNIT_MINUTE, status));