Home
last modified time | relevance | path

Searched refs:GregorianCalendar (Results 1 – 25 of 165) sorted by relevance

1234567

/external/icu/icu4c/source/i18n/
Dgregocal.cpp140 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(GregorianCalendar)
154 GregorianCalendar::GregorianCalendar(UErrorCode& status) in GregorianCalendar() function in GregorianCalendar
165 GregorianCalendar::GregorianCalendar(TimeZone* zone, UErrorCode& status) in GregorianCalendar() function in GregorianCalendar
176 GregorianCalendar::GregorianCalendar(const TimeZone& zone, UErrorCode& status) in GregorianCalendar() function in GregorianCalendar
187 GregorianCalendar::GregorianCalendar(const Locale& aLocale, UErrorCode& status) in GregorianCalendar() function in GregorianCalendar
198 GregorianCalendar::GregorianCalendar(TimeZone* zone, const Locale& aLocale, in GregorianCalendar() function in GregorianCalendar
210 GregorianCalendar::GregorianCalendar(const TimeZone& zone, const Locale& aLocale, in GregorianCalendar() function in GregorianCalendar
222 GregorianCalendar::GregorianCalendar(int32_t year, int32_t month, int32_t date, in GregorianCalendar() function in GregorianCalendar
237 GregorianCalendar::GregorianCalendar(int32_t year, int32_t month, int32_t date, in GregorianCalendar() function in GregorianCalendar
254 GregorianCalendar::GregorianCalendar(int32_t year, int32_t month, int32_t date, in GregorianCalendar() function in GregorianCalendar
[all …]
Dbuddhcal.cpp36 : GregorianCalendar(aLocale, success) in BuddhistCalendar()
46 : GregorianCalendar(source) in BuddhistCalendar()
52 GregorianCalendar::operator=(right); in operator =()
85 return GregorianCalendar::handleComputeMonthStart(eyear, month, useMonth); in handleComputeMonthStart()
90 GregorianCalendar::handleComputeFields(julianDay, status); in handleComputeFields()
101 return GregorianCalendar::handleGetLimit(field,limitType); in handleGetLimit()
113 if(era == GregorianCalendar::BC) {
116 } else if(era == GregorianCalendar::AD) {
Dtaiwncal.cpp36 : GregorianCalendar(aLocale, success) in TaiwanCalendar()
46 : GregorianCalendar(source) in TaiwanCalendar()
52 GregorianCalendar::operator=(right); in operator =()
88 GregorianCalendar::handleComputeFields(julianDay, status); in handleComputeFields()
108 return GregorianCalendar::handleGetLimit(field,limitType); in handleGetLimit()
120 if(era == GregorianCalendar::BC) {
123 } else if(era == GregorianCalendar::AD) {
Djapancal.cpp108 : GregorianCalendar(aLocale, success) in JapaneseCalendar()
119 : GregorianCalendar(source) in JapaneseCalendar()
128 GregorianCalendar::operator=(right); in operator =()
213 GregorianCalendar::handleComputeFields(julianDay, status); in handleComputeFields()
261 … return GregorianCalendar::handleGetLimit(UCAL_YEAR, UCAL_LIMIT_MAXIMUM) - eraStartYear; in handleGetLimit()
268 return GregorianCalendar::handleGetLimit(field,limitType); in handleGetLimit()
297 return GregorianCalendar::getActualMaximum(field, status); in getActualMaximum()
/external/icu/icu4c/source/i18n/unicode/
Dgregocal.h151 class U_I18N_API GregorianCalendar: public Calendar {
171 GregorianCalendar(UErrorCode& success);
183 GregorianCalendar(TimeZone* zoneToAdopt, UErrorCode& success);
194 GregorianCalendar(const TimeZone& zone, UErrorCode& success);
205 GregorianCalendar(const Locale& aLocale, UErrorCode& success);
218 GregorianCalendar(TimeZone* zoneToAdopt, const Locale& aLocale, UErrorCode& success);
230 GregorianCalendar(const TimeZone& zone, const Locale& aLocale, UErrorCode& success);
244 GregorianCalendar(int32_t year, int32_t month, int32_t date, UErrorCode& success);
260GregorianCalendar(int32_t year, int32_t month, int32_t date, int32_t hour, int32_t minute, UErrorC…
277GregorianCalendar(int32_t year, int32_t month, int32_t date, int32_t hour, int32_t minute, int32_t…
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DCalendarRegressionTest.java33 import com.ibm.icu.util.GregorianCalendar;
88 GregorianCalendar cal = new GregorianCalendar(zone); in Test4031502()
111 …java.util.GregorianCalendar cal2 = new java.util.GregorianCalendar(java.util.TimeZone.getTimeZone(… in Test4031502()
142 GregorianCalendar c = new GregorianCalendar(98, 8, 7); in Test4035301()
143 GregorianCalendar d = new GregorianCalendar(98, 8, 7); in Test4035301()
164 Calendar calendar = new GregorianCalendar(pdt); in Test4040996()
267 GregorianCalendar gc = new GregorianCalendar(icuzone); in Test4059654()
293 Calendar cal = GregorianCalendar.getInstance(TimeZone.getTimeZone("GMT"), in Test4061476()
318 Calendar cal = new GregorianCalendar(); in Test4070502()
335 GregorianCalendar cal = new GregorianCalendar(); in getAssociatedDate()
[all …]
DAstroTest.java26 import com.ibm.icu.util.GregorianCalendar;
38 GregorianCalendar gc = new GregorianCalendar(new SimpleTimeZone(0, "UTC")); in TestSolarLongitude()
92 GregorianCalendar gc = new GregorianCalendar(new SimpleTimeZone(0, "UTC")); in TestLunarPosition()
140 GregorianCalendar cal = new GregorianCalendar(1958, Calendar.AUGUST, 15); in TestCoverage()
247 GregorianCalendar cal = new GregorianCalendar(tz, Locale.US); in TestSunriseTimes()
248 GregorianCalendar cal2 = new GregorianCalendar(tz, Locale.US); in TestSunriseTimes()
331 GregorianCalendar cal3 = new GregorianCalendar(TimeZone.getTimeZone("GMT"), Locale.US); in TestBasics()
359 GregorianCalendar gc = new GregorianCalendar(new SimpleTimeZone(0,"GMT")); in TestMoonAge()
DCompatibilityTest.java27 import com.ibm.icu.util.GregorianCalendar;
76 GregorianCalendar cal = new GregorianCalendar(gmt); in TestGregorianChangeover()
121 GregorianCalendar cal = in TestMapping()
122 new GregorianCalendar(TimeZone.getTimeZone("UTC")); in TestMapping()
172 GregorianCalendar cal = new GregorianCalendar(); in TestMapping()
412 GregorianCalendar gc = new GregorianCalendar(zone); in TestGenericAPI()
415 gc = new GregorianCalendar(Locale.ENGLISH); in TestGenericAPI()
418 gc = new GregorianCalendar(Locale.ENGLISH); in TestGenericAPI()
421 gc = new GregorianCalendar(zone, Locale.ENGLISH); in TestGenericAPI()
424 gc = new GregorianCalendar(zone); in TestGenericAPI()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DCalendarRegressionTest.java34 import android.icu.util.GregorianCalendar;
91 GregorianCalendar cal = new GregorianCalendar(zone); in Test4031502()
114 …java.util.GregorianCalendar cal2 = new java.util.GregorianCalendar(java.util.TimeZone.getTimeZone(… in Test4031502()
145 GregorianCalendar c = new GregorianCalendar(98, 8, 7); in Test4035301()
146 GregorianCalendar d = new GregorianCalendar(98, 8, 7); in Test4035301()
167 Calendar calendar = new GregorianCalendar(pdt); in Test4040996()
270 GregorianCalendar gc = new GregorianCalendar(icuzone); in Test4059654()
296 Calendar cal = GregorianCalendar.getInstance(TimeZone.getTimeZone("GMT"), in Test4061476()
321 Calendar cal = new GregorianCalendar(); in Test4070502()
338 GregorianCalendar cal = new GregorianCalendar(); in getAssociatedDate()
[all …]
DAstroTest.java27 import android.icu.util.GregorianCalendar;
41 GregorianCalendar gc = new GregorianCalendar(new SimpleTimeZone(0, "UTC")); in TestSolarLongitude()
95 GregorianCalendar gc = new GregorianCalendar(new SimpleTimeZone(0, "UTC")); in TestLunarPosition()
143 GregorianCalendar cal = new GregorianCalendar(1958, Calendar.AUGUST, 15); in TestCoverage()
250 GregorianCalendar cal = new GregorianCalendar(tz, Locale.US); in TestSunriseTimes()
251 GregorianCalendar cal2 = new GregorianCalendar(tz, Locale.US); in TestSunriseTimes()
334 GregorianCalendar cal3 = new GregorianCalendar(TimeZone.getTimeZone("GMT"), Locale.US); in TestBasics()
362 GregorianCalendar gc = new GregorianCalendar(new SimpleTimeZone(0,"GMT")); in TestMoonAge()
DCompatibilityTest.java28 import android.icu.util.GregorianCalendar;
79 GregorianCalendar cal = new GregorianCalendar(gmt); in TestGregorianChangeover()
124 GregorianCalendar cal = in TestMapping()
125 new GregorianCalendar(TimeZone.getTimeZone("UTC")); in TestMapping()
175 GregorianCalendar cal = new GregorianCalendar(); in TestMapping()
415 GregorianCalendar gc = new GregorianCalendar(zone); in TestGenericAPI()
418 gc = new GregorianCalendar(Locale.ENGLISH); in TestGenericAPI()
421 gc = new GregorianCalendar(Locale.ENGLISH); in TestGenericAPI()
424 gc = new GregorianCalendar(zone, Locale.ENGLISH); in TestGenericAPI()
427 gc = new GregorianCalendar(zone); in TestGenericAPI()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DGregorianCalendar.java172 public class GregorianCalendar extends Calendar { class
339 public GregorianCalendar() { in GregorianCalendar() method in GregorianCalendar
350 public GregorianCalendar(TimeZone zone) { in GregorianCalendar() method in GregorianCalendar
360 public GregorianCalendar(Locale aLocale) { in GregorianCalendar() method in GregorianCalendar
370 public GregorianCalendar(ULocale locale) { in GregorianCalendar() method in GregorianCalendar
381 public GregorianCalendar(TimeZone zone, Locale aLocale) { in GregorianCalendar() method in GregorianCalendar
393 public GregorianCalendar(TimeZone zone, ULocale locale) { in GregorianCalendar() method in GregorianCalendar
408 public GregorianCalendar(int year, int month, int date) { in GregorianCalendar() method in GregorianCalendar
430 public GregorianCalendar(int year, int month, int date, int hour, in GregorianCalendar() method in GregorianCalendar
457 public GregorianCalendar(int year, int month, int date, int hour, in GregorianCalendar() method in GregorianCalendar
[all …]
DEasterHoliday.java248 private Date computeInYear(Date date, GregorianCalendar cal) in computeInYear()
279 cal.set(Calendar.ERA, GregorianCalendar.AD); in computeInYear()
291 private GregorianCalendar calendar = new GregorianCalendar();
/external/icu/android_icu4j/src/main/java/android/icu/util/
DGregorianCalendar.java172 public class GregorianCalendar extends Calendar { class
333 public GregorianCalendar() { in GregorianCalendar() method in GregorianCalendar
343 public GregorianCalendar(TimeZone zone) { in GregorianCalendar() method in GregorianCalendar
352 public GregorianCalendar(Locale aLocale) { in GregorianCalendar() method in GregorianCalendar
361 public GregorianCalendar(ULocale locale) { in GregorianCalendar() method in GregorianCalendar
371 public GregorianCalendar(TimeZone zone, Locale aLocale) { in GregorianCalendar() method in GregorianCalendar
382 public GregorianCalendar(TimeZone zone, ULocale locale) { in GregorianCalendar() method in GregorianCalendar
396 public GregorianCalendar(int year, int month, int date) { in GregorianCalendar() method in GregorianCalendar
417 public GregorianCalendar(int year, int month, int date, int hour, in GregorianCalendar() method in GregorianCalendar
443 public GregorianCalendar(int year, int month, int date, int hour, in GregorianCalendar() method in GregorianCalendar
[all …]
DEasterHoliday.java234 private Date computeInYear(Date date, GregorianCalendar cal) in computeInYear()
265 cal.set(Calendar.ERA, GregorianCalendar.AD); in computeInYear()
277 private GregorianCalendar calendar = new GregorianCalendar();
/external/icu/android_icu4j/src/samples/java/android/icu/samples/text/dateintervalformat/
DDateIntervalFormatSample.java21 import android.icu.util.GregorianCalendar;
43 new GregorianCalendar(2007,10,10,10,10,10).getTime(), in dtitvfmtPreDefined()
44 new GregorianCalendar(2008,10,10,10,10,10).getTime(), in dtitvfmtPreDefined()
45 new GregorianCalendar(2008,11,10,10,10,10).getTime(), in dtitvfmtPreDefined()
46 new GregorianCalendar(2008,11,10,15,10,10).getTime(), in dtitvfmtPreDefined()
86 new GregorianCalendar(2007,9,10,10,10,10).getTime(), in dtitvfmtCustomized()
87 new GregorianCalendar(2007,10,10,10,10,10).getTime(), in dtitvfmtCustomized()
88 new GregorianCalendar(2007,10,10,22,10,10).getTime(), in dtitvfmtCustomized()
/external/icu/icu4c/source/test/intltest/
Dcalregts.cpp143 GregorianCalendar *cal = (GregorianCalendar*)Calendar::createInstance(status); in test4100311()
166 GregorianCalendar *cal = new GregorianCalendar(status); in test4074758()
189 GregorianCalendar *cal1 = new GregorianCalendar(status) ; in test4028518()
196 GregorianCalendar *cal2 = (GregorianCalendar*) cal1->clone() ; in test4028518()
213 LocalPointer<GregorianCalendar> cal1(new GregorianCalendar(status), status); in Test9019()
214 LocalPointer<GregorianCalendar> cal2(new GregorianCalendar(status), status); in Test9019()
240 CalendarRegressionTest::printdate(GregorianCalendar *cal, const char *string) in printdate()
270 GregorianCalendar *cl = new GregorianCalendar(tz, status); in test4031502()
284 GregorianCalendar *cal = new GregorianCalendar(zone, status); in test4031502()
311 GregorianCalendar *c = new GregorianCalendar(98, 8, 7,status); in test4035301()
[all …]
/external/icu/icu4j/samples/src/com/ibm/icu/samples/text/dateintervalformat/
DDateIntervalFormatSample.java20 import com.ibm.icu.util.GregorianCalendar;
42 new GregorianCalendar(2007,10,10,10,10,10).getTime(), in dtitvfmtPreDefined()
43 new GregorianCalendar(2008,10,10,10,10,10).getTime(), in dtitvfmtPreDefined()
44 new GregorianCalendar(2008,11,10,10,10,10).getTime(), in dtitvfmtPreDefined()
45 new GregorianCalendar(2008,11,10,15,10,10).getTime(), in dtitvfmtPreDefined()
85 new GregorianCalendar(2007,9,10,10,10,10).getTime(), in dtitvfmtCustomized()
86 new GregorianCalendar(2007,10,10,10,10,10).getTime(), in dtitvfmtCustomized()
87 new GregorianCalendar(2007,10,10,22,10,10).getTime(), in dtitvfmtCustomized()
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/
DXMPDateTimeFactory.java14 import java.util.GregorianCalendar;
100 return new XMPDateTimeImpl(new GregorianCalendar()); in getCurrentDateTime()
131 GregorianCalendar cal = new GregorianCalendar(UTC); in convertToUTCTime()
149 GregorianCalendar cal = new GregorianCalendar(); in convertToLocalTime()
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
DXMPDateTimeImpl.java14 import java.util.GregorianCalendar;
74 GregorianCalendar intCalendar = in XMPDateTimeImpl()
75 (GregorianCalendar) Calendar.getInstance(Locale.US); in XMPDateTimeImpl()
100 GregorianCalendar calendar = new GregorianCalendar(timeZone); in XMPDateTimeImpl()
316 GregorianCalendar calendar = (GregorianCalendar) Calendar.getInstance(Locale.US); in getCalendar()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneRegressionTest.java34 import com.ibm.icu.util.GregorianCalendar;
187 GregorianCalendar testCal = (GregorianCalendar)Calendar.getInstance(); in Test4109314()
218 boolean checkCalendar314(GregorianCalendar testCal, TimeZone testTZ) { in checkCalendar314()
574 final int GOOD_ERA=GregorianCalendar.AD, GOOD_YEAR=1998, GOOD_MONTH=Calendar.AUGUST; in Test4154650()
579 GOOD, GregorianCalendar.BC, GOOD_YEAR, GOOD_MONTH, GOOD_DAY, GOOD_DOW, GOOD_TIME, in Test4154650()
580 GOOD, GregorianCalendar.AD, GOOD_YEAR, GOOD_MONTH, GOOD_DAY, GOOD_DOW, GOOD_TIME, in Test4154650()
581 BAD, GregorianCalendar.BC-1, GOOD_YEAR, GOOD_MONTH, GOOD_DAY, GOOD_DOW, GOOD_TIME, in Test4154650()
582 BAD, GregorianCalendar.AD+1, GOOD_YEAR, GOOD_MONTH, GOOD_DAY, GOOD_DOW, GOOD_TIME, in Test4154650()
777 int off = tz.getOffset(GregorianCalendar.AD, in Test4162593()
822 GregorianCalendar cal = new GregorianCalendar(); in Test4173604()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
DTimeZoneRegressionTest.java35 import android.icu.util.GregorianCalendar;
190 GregorianCalendar testCal = (GregorianCalendar)Calendar.getInstance(); in Test4109314()
221 boolean checkCalendar314(GregorianCalendar testCal, TimeZone testTZ) { in checkCalendar314()
577 final int GOOD_ERA=GregorianCalendar.AD, GOOD_YEAR=1998, GOOD_MONTH=Calendar.AUGUST; in Test4154650()
582 GOOD, GregorianCalendar.BC, GOOD_YEAR, GOOD_MONTH, GOOD_DAY, GOOD_DOW, GOOD_TIME, in Test4154650()
583 GOOD, GregorianCalendar.AD, GOOD_YEAR, GOOD_MONTH, GOOD_DAY, GOOD_DOW, GOOD_TIME, in Test4154650()
584 BAD, GregorianCalendar.BC-1, GOOD_YEAR, GOOD_MONTH, GOOD_DAY, GOOD_DOW, GOOD_TIME, in Test4154650()
585 BAD, GregorianCalendar.AD+1, GOOD_YEAR, GOOD_MONTH, GOOD_DAY, GOOD_DOW, GOOD_TIME, in Test4154650()
780 int off = tz.getOffset(GregorianCalendar.AD, in Test4162593()
825 GregorianCalendar cal = new GregorianCalendar(); in Test4173604()
[all …]
/external/apache-harmony/support/src/test/java/tests/support/
DSupport_TimeZone.java21 import java.util.GregorianCalendar;
54 GregorianCalendar cal = new GregorianCalendar(); in inDaylightTime()
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
DDateFormatTest.java45 java.util.GregorianCalendar gcal = new java.util.GregorianCalendar(); in setUp()
47 gcal.set(java.util.GregorianCalendar.YEAR, 1990); in setUp()
48 gcal.set(java.util.GregorianCalendar.MONTH, java.util.GregorianCalendar.DECEMBER); in setUp()
49 gcal.set(java.util.GregorianCalendar.DATE, 17); in setUp()
50 gcal.set(java.util.GregorianCalendar.HOUR, 5); in setUp()
51 gcal.set(java.util.GregorianCalendar.MINUTE, 17); in setUp()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/timescale/
DEpochOffsets.java18 import com.ibm.icu.util.GregorianCalendar;
81 GregorianCalendar cal = new GregorianCalendar(utc, Locale.ENGLISH); in main()

1234567