Searched refs:GregorianCalendar (Results 1 - 25 of 56) sorted by relevance

123

/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
H A DGregorianCalendarTest.java23 import java.util.GregorianCalendar;
32 * @tests java.util.GregorianCalendar#GregorianCalendar()
35 // Test for method java.util.GregorianCalendar()
36 assertTrue("Constructed incorrect calendar", (new GregorianCalendar()
41 * @tests java.util.GregorianCalendar#GregorianCalendar(int, int, int)
44 // Test for method java.util.GregorianCalendar(int, int, int)
45 GregorianCalendar gc = new GregorianCalendar(197
[all...]
H A DDateTest.java22 import java.util.GregorianCalendar;
48 GregorianCalendar gc = new GregorianCalendar(1998, Calendar.OCTOBER,
69 Calendar cal = new GregorianCalendar(1999, Calendar.JUNE, 22);
206 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9)
216 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9)
226 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9)
236 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9)
246 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9)
256 Date d = new GregorianCalendar(199
[all...]
H A DSimpleTimeZoneTest.java22 import java.util.GregorianCalendar;
57 .inDaylightTime(new GregorianCalendar(1998, Calendar.NOVEMBER,
60 .inDaylightTime(new GregorianCalendar(1998, Calendar.OCTOBER,
78 .inDaylightTime(new GregorianCalendar(1998, Calendar.NOVEMBER,
81 .inDaylightTime(new GregorianCalendar(1998, Calendar.OCTOBER,
194 GregorianCalendar.AD, 1998, Calendar.NOVEMBER, 11,
199 .getOffset(GregorianCalendar.AD, 1998, Calendar.JUNE, 11,
262 GregorianCalendar gc = new GregorianCalendar(1998, Calendar.JUNE, 11);
265 gc = new GregorianCalendar(199
[all...]
H A DTimeZoneTest.java24 import java.util.GregorianCalendar;
79 long time1 = new GregorianCalendar(1998, Calendar.NOVEMBER, 11)
84 long time2 = new GregorianCalendar(1998, Calendar.JUNE, 11)
/external/icu4c/i18n/unicode/
H A Dgregocal.h72 * <p>Example for using GregorianCalendar:
93 * // create a GregorianCalendar with the Pacific Daylight time zone
95 * Calendar* calendar = new GregorianCalendar( pdt, success );
149 class U_I18N_API GregorianCalendar: public Calendar { class in inherits:Calendar
153 * Useful constants for GregorianCalendar and TimeZone.
162 * Constructs a default GregorianCalendar using the current time in the default time
165 * @param success Indicates the status of GregorianCalendar object construction.
169 GregorianCalendar(UErrorCode& success);
172 * Constructs a GregorianCalendar based on the current time in the given time zone
177 * @param success Indicates the status of GregorianCalendar objec
[all...]
/external/icu4c/i18n/
H A Dgregocal.cpp51 // class GregorianCalendar
138 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(GregorianCalendar)
145 //const UDate GregorianCalendar::kPapalCutover = -12219292800000L;
152 GregorianCalendar::GregorianCalendar(UErrorCode& status) function in class:GregorianCalendar
163 GregorianCalendar::GregorianCalendar(TimeZone* zone, UErrorCode& status) function in class:GregorianCalendar
174 GregorianCalendar::GregorianCalendar(const TimeZone& zone, UErrorCode& status) function in class:GregorianCalendar
185 GregorianCalendar function in class:GregorianCalendar
196 GregorianCalendar::GregorianCalendar(TimeZone* zone, const Locale& aLocale, function in class:GregorianCalendar
208 GregorianCalendar::GregorianCalendar(const TimeZone& zone, const Locale& aLocale, function in class:GregorianCalendar
220 GregorianCalendar::GregorianCalendar(int32_t year, int32_t month, int32_t date, function in class:GregorianCalendar
235 GregorianCalendar::GregorianCalendar(int32_t year, int32_t month, int32_t date, function in class:GregorianCalendar
252 GregorianCalendar::GregorianCalendar(int32_t year, int32_t month, int32_t date, function in class:GregorianCalendar
277 GregorianCalendar::GregorianCalendar(const GregorianCalendar &source) function in class:GregorianCalendar
[all...]
H A Dbuddhcal.cpp34 : GregorianCalendar(aLocale, success)
44 : GregorianCalendar(source)
50 GregorianCalendar::operator=(right);
83 return GregorianCalendar::handleComputeMonthStart(eyear, month, useMonth);
88 GregorianCalendar::handleComputeFields(julianDay, status);
99 return GregorianCalendar::handleGetLimit(field,limitType);
111 if(era == GregorianCalendar::BC) {
114 } else if(era == GregorianCalendar::AD) {
H A Dtaiwncal.cpp34 : GregorianCalendar(aLocale, success)
44 : GregorianCalendar(source)
50 GregorianCalendar::operator=(right);
86 GregorianCalendar::handleComputeFields(julianDay, status);
106 return GregorianCalendar::handleGetLimit(field,limitType);
118 if(era == GregorianCalendar::BC) {
121 } else if(era == GregorianCalendar::AD) {
H A Djapancal.cpp294 : GregorianCalendar(aLocale, success)
304 : GregorianCalendar(source)
310 GregorianCalendar::operator=(right);
381 GregorianCalendar::handleComputeFields(julianDay, status);
494 return GregorianCalendar::handleGetLimit(UCAL_YEAR, UCAL_LIMIT_MAXIMUM) - kEraInfo[kCurrentEra].year;
500 return GregorianCalendar::handleGetLimit(field,limitType);
526 return GregorianCalendar::getActualMaximum(field, status);
H A Dbuddhcal.h31 * <code>BuddhistCalendar</code> is a subclass of <code>GregorianCalendar</code>
47 class BuddhistCalendar : public GregorianCalendar {
H A Djapancal.h31 * <code>JapaneseCalendar</code> is a subclass of <code>GregorianCalendar</code>
56 class JapaneseCalendar : public GregorianCalendar {
H A Dtaiwncal.h32 * <code>TaiwanCalendar</code> is a subclass of <code>GregorianCalendar</code>
43 class TaiwanCalendar : public GregorianCalendar {
/external/apache-harmony/support/src/test/java/tests/support/
H A DSupport_TimeZone.java21 import java.util.GregorianCalendar;
55 GregorianCalendar cal = new GregorianCalendar();
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
H A DSimpleDateFormatTest.java27 import java.util.GregorianCalendar;
341 Calendar cal = new GregorianCalendar(1999, Calendar.JUNE, 2, 15, 3, 6);
345 test.test(" G", new GregorianCalendar(-1999, Calendar.JUNE, 2), " BC",
350 test.test(" yy", new GregorianCalendar(2001, Calendar.JUNE, 2), " 01",
352 test.test(" yy", new GregorianCalendar(2000, Calendar.JUNE, 2), " 00",
354 test.test(" yyy", new GregorianCalendar(2000, Calendar.JUNE, 2), " 2000",
361 test.test(" M", new GregorianCalendar(1999, Calendar.NOVEMBER, 2),
370 test.test(" d", new GregorianCalendar(1999, Calendar.NOVEMBER, 12),
376 test.test(" h", new GregorianCalendar(1999, Calendar.NOVEMBER, 12),
383 new GregorianCalendar(199
[all...]
H A DSupport_MessageFormat.java25 import java.util.GregorianCalendar;
51 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime();
78 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime();
/external/javassist/sample/evolve/
H A DWebPage.java13 Calendar c = new GregorianCalendar();
/external/javassist/sample/evolve/sample/evolve/
H A DWebPage.java14 Calendar c = new GregorianCalendar();
/external/icu4c/samples/datecal/
H A Dcal.cpp20 GregorianCalendar* gc = new GregorianCalendar(status);
22 puts("Couldn't create GregorianCalendar");
/external/icu4c/test/intltest/
H A Dcalregts.cpp130 GregorianCalendar *cal = (GregorianCalendar*)Calendar::createInstance(status);
153 GregorianCalendar *cal = new GregorianCalendar(status);
159 failure(status, "new GregorianCalendar");
176 GregorianCalendar *cal1 = new GregorianCalendar(status) ;
182 failure(status, "new GregorianCalendar");
183 GregorianCalendar *cal2 = (GregorianCalendar*) cal
[all...]
H A Dtzregts.h49 UBool checkCalendar314(GregorianCalendar *testCal, TimeZone *testTZ);
H A Dcalregts.h75 void printdate(GregorianCalendar *cal, const char *string);
H A Dcaltest.cpp450 GregorianCalendar *gc = new GregorianCalendar(*zone, status);
451 if (failure(status, "new GregorianCalendar")) return;
454 gc = new GregorianCalendar(Locale::getEnglish(), status);
455 if (failure(status, "new GregorianCalendar")) return;
458 gc = new GregorianCalendar(Locale::getEnglish(), status);
461 gc = new GregorianCalendar(*zone, Locale::getEnglish(), status);
462 if (failure(status, "new GregorianCalendar")) return;
465 gc = new GregorianCalendar(zone, status);
466 if (failure(status, "new GregorianCalendar")) retur
[all...]
H A Dastrotst.cpp151 GregorianCalendar *cal = new GregorianCalendar(1958, UCAL_AUGUST, 15,status);
270 GregorianCalendar *cal = new GregorianCalendar(tz->clone(), Locale::getUS(), status);
271 GregorianCalendar *cal2 = new GregorianCalendar(tz->clone(), Locale::getUS(), status);
382 GregorianCalendar *cal3 = new GregorianCalendar(TimeZone::getGMT()->clone(), Locale::getUS(), status);
H A Dtztest.cpp165 GregorianCalendar *gc = new GregorianCalendar(*zone, status);
166 if (failure(status, "new GregorianCalendar", TRUE)) return;
173 if (failure(status, "GregorianCalendar::getTime")) return;
183 gc = new GregorianCalendar(*zone, status);
184 if (failure(status, "new GregorianCalendar")) return;
339 GregorianCalendar *gc = new GregorianCalendar(status);
340 if (U_FAILURE(status)) { errln("FAIL: Couldn't create GregorianCalendar"); return; }
342 if (U_FAILURE(status)) { errln("FAIL: GregorianCalendar
[all...]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
H A DConsoleTest.java32 import java.util.GregorianCalendar;
78 Calendar c = new GregorianCalendar(1983, 2, 21);

Completed in 396 milliseconds

123