Home
last modified time | relevance | path

Searched refs:fCalendar (Results 1 – 10 of 10) sorted by relevance

/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/calendar/
DCalendarPanel.java40 for (int i = 0; i < fCalendar.length; i++) { in setLocale()
41 if (fCalendar[i] != null) { in setLocale()
42 fSymbols[i] = new DateFormatSymbols(fCalendar[i], in setLocale()
61 synchronized(fCalendar) { in add()
62 fCalendar[0].setTime(fStartOfMonth); in add()
63 fCalendar[0].add(field, delta); in add()
64 fStartOfMonth = fCalendar[0].getTime(); in add()
76 Date date = (fCalendar[index] == null) ? new Date() in setCalendar()
77 : fCalendar[index].getTime(); in setCalendar()
79 fCalendar[index] = c; in setCalendar()
[all …]
/external/icu/icu4c/source/i18n/
Ddatefmt.cpp124 : fCalendar(0), in DateFormat()
134 fCalendar(0), in DateFormat()
147 delete fCalendar; in operator =()
149 if(other.fCalendar) { in operator =()
150 fCalendar = other.fCalendar->clone(); in operator =()
152 fCalendar = NULL; in operator =()
169 delete fCalendar; in ~DateFormat()
187 fCalendar&&(fCalendar->isEquivalentTo(*fmt->fCalendar)) && in operator ==()
280 if (fCalendar != NULL) { in format()
282 Calendar* calClone = fCalendar->clone(); in format()
[all …]
Dwindtfmt.cpp181 if (strcmp(fCalendar->getType(), cal.getType()) != 0) { in format()
202 if (fCalendar == NULL || strcmp(fCalendar->getType(), newCalendar->getType()) != 0) { in adoptCalendar()
211 delete fCalendar; in adoptCalendar()
212 fCalendar = newCalendar; in adoptCalendar()
214 fZoneID = setTimeZoneInfo(fTZI, fCalendar->getTimeZone()); in adoptCalendar()
225 fCalendar->adoptTimeZone(zoneToAdopt); in adoptTimeZone()
231 fCalendar->setTimeZone(zone); in setTimeZone()
Dsmpdtfmt.cpp698 CalendarData calData(locale, fCalendar?fCalendar->getType():NULL, status); in construct()
883fCalendar = Calendar::createInstance(adoptZone?adoptZone:TimeZone::createDefault(), locale, status… in initializeCalendar()
885 return fCalendar; in initializeCalendar()
916 if(fCalendar) { in initializeDefaultCentury()
917 fHaveDefaultCentury = fCalendar->haveDefaultCentury(); in initializeDefaultCentury()
919 fDefaultCenturyStart = fCalendar->defaultCenturyStart(); in initializeDefaultCentury()
920 fDefaultCenturyStartYear = fCalendar->defaultCenturyStartYear(); in initializeDefaultCentury()
949 if(!fCalendar) { in parseAmbiguousDatesAsAfter()
954 fCalendar->setTime(startDate, status); in parseAmbiguousDatesAsAfter()
958 fDefaultCenturyStartYear = fCalendar->get(UCAL_YEAR, status); in parseAmbiguousDatesAsAfter()
[all …]
Dreldtfmt.cpp589fCalendar = Calendar::createInstance(adoptZone?adoptZone:TimeZone::createDefault(), locale, status… in initializeCalendar()
591 if (U_SUCCESS(status) && fCalendar == NULL) { in initializeCalendar()
594 return fCalendar; in initializeCalendar()
Ddtptngen.cpp892 Calendar* fCalendar = Calendar::createInstance(locale, status); in setDateTimeFromCalendar() local
893 CalendarData calData(locale, fCalendar?fCalendar->getType():NULL, status); in setDateTimeFromCalendar()
905 delete fCalendar; in setDateTimeFromCalendar()
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/holiday/
DHolidayCalendarDemo.java428 set(locale, fDisplayLocale, fCalendar.getTime()); in setCalendarLocale()
432 set(fCalendarLocale, locale, fCalendar.getTime()); in setDisplayLocale()
443 fCalendar = Calendar.getInstance(fCalendarLocale); in set()
459 synchronized(fCalendar) { in add()
460 fCalendar.setTime(fStartOfMonth); in add()
461 fCalendar.add(field, delta); in add()
462 fStartOfMonth = fCalendar.getTime(); in add()
469 return fCalendar; in getCalendar()
487 synchronized(fCalendar) { in startOfMonth()
488 fCalendar.setTime(dateInMonth); // TODO: synchronization in startOfMonth()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DHolidayTest.java209 private Date startOfMonth(/*Date dateInMonth,*/ Calendar fCalendar) in startOfMonth() argument
214 int era = fCalendar.get(Calendar.ERA); in startOfMonth()
215 int year = fCalendar.get(Calendar.YEAR); in startOfMonth()
216 int month = fCalendar.get(Calendar.MONTH); in startOfMonth()
218 fCalendar.clear(); in startOfMonth()
219 fCalendar.set(Calendar.ERA, era); in startOfMonth()
220 fCalendar.set(Calendar.YEAR, year); in startOfMonth()
221 fCalendar.set(Calendar.MONTH, month); in startOfMonth()
222 fCalendar.set(Calendar.DATE, 1); in startOfMonth()
224 return fCalendar.getTime(); in startOfMonth()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DHolidayTest.java205 private Date startOfMonth(/*Date dateInMonth,*/ Calendar fCalendar) in startOfMonth() argument
210 int era = fCalendar.get(Calendar.ERA); in startOfMonth()
211 int year = fCalendar.get(Calendar.YEAR); in startOfMonth()
212 int month = fCalendar.get(Calendar.MONTH); in startOfMonth()
214 fCalendar.clear(); in startOfMonth()
215 fCalendar.set(Calendar.ERA, era); in startOfMonth()
216 fCalendar.set(Calendar.YEAR, year); in startOfMonth()
217 fCalendar.set(Calendar.MONTH, month); in startOfMonth()
218 fCalendar.set(Calendar.DATE, 1); in startOfMonth()
220 return fCalendar.getTime(); in startOfMonth()
/external/icu/icu4c/source/i18n/unicode/
Ddatefmt.h857 Calendar* fCalendar; variable