Home
last modified time | relevance | path

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

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DGregorianCalendarTest.java23 import java.util.GregorianCalendar;
55 assertTrue("Constructed incorrect calendar", (new GregorianCalendar() in test_Constructor()
64 GregorianCalendar gc = new GregorianCalendar(1972, Calendar.OCTOBER, 13); in test_ConstructorIII()
81 GregorianCalendar gc = new GregorianCalendar(1972, Calendar.OCTOBER, in test_ConstructorIIIII()
98 gc = new GregorianCalendar(1900, 0, 0, 0, Integer.MAX_VALUE); in test_ConstructorIIIII()
110 GregorianCalendar gc = new GregorianCalendar(1972, Calendar.OCTOBER, in test_ConstructorIIIIII()
135 GregorianCalendar gcJapan = new GregorianCalendar(Locale.JAPAN); in test_ConstructorLjava_util_Locale()
137 GregorianCalendar gcJapan2 = new GregorianCalendar(Locale.JAPAN); in test_ConstructorLjava_util_Locale()
139 GregorianCalendar gcItaly = new GregorianCalendar(Locale.ITALY); in test_ConstructorLjava_util_Locale()
152 GregorianCalendar gc1 = new GregorianCalendar(AMERICA_NEW_YORK); in test_ConstructorLjava_util_TimeZone()
[all …]
DDateTest.java25 import java.util.GregorianCalendar;
36 GregorianCalendar gc = new GregorianCalendar(1998, Calendar.OCTOBER, in test_Constructor()
57 Calendar cal = new GregorianCalendar(1999, Calendar.JUNE, 22); in test_ConstructorIII()
205 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getDate()
215 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getDay()
225 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getHours()
235 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getMinutes()
245 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getMonth()
255 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getSeconds()
284 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getYear()
[all …]
DSimpleTimeZoneTest.java22 import java.util.GregorianCalendar;
57 .inDaylightTime(new GregorianCalendar(1998, Calendar.NOVEMBER, in test_ConstructorILjava_lang_StringIIIIIIII()
60 .inDaylightTime(new GregorianCalendar(1998, Calendar.OCTOBER, in test_ConstructorILjava_lang_StringIIIIIIII()
114 .inDaylightTime(new GregorianCalendar(1998, Calendar.NOVEMBER, in test_ConstructorILjava_lang_StringIIIIIIIII()
117 .inDaylightTime(new GregorianCalendar(1998, Calendar.OCTOBER, in test_ConstructorILjava_lang_StringIIIIIIIII()
301 GregorianCalendar.AD, 1998, Calendar.NOVEMBER, 11, in test_getOffsetIIIIII()
306 .getOffset(GregorianCalendar.AD, 1998, Calendar.JUNE, 11, in test_getOffsetIIIIII()
405 GregorianCalendar gc = new GregorianCalendar(1998, Calendar.JUNE, 11); in test_inDaylightTimeLjava_util_Date()
409 gc = new GregorianCalendar(1998, Calendar.NOVEMBER, 11); in test_inDaylightTimeLjava_util_Date()
412 gc = new GregorianCalendar(zone); in test_inDaylightTimeLjava_util_Date()
[all …]
DTimeZoneTest.java24 import java.util.GregorianCalendar;
79 long time1 = new GregorianCalendar(1998, Calendar.NOVEMBER, 11) in test_getOffset_long()
84 long time2 = new GregorianCalendar(1998, Calendar.JUNE, 11) in test_getOffset_long()
/libcore/luni/src/test/java/libcore/java/util/
DOldGregorianCalendarTest.java22 import java.util.GregorianCalendar;
33 GregorianCalendar gc1 = new GregorianCalendar(TimeZone.getTimeZone("GMT+1"), Locale.FRANCE); in testGetHour()
35 GregorianCalendar gc2 = new GregorianCalendar(TimeZone.getTimeZone("GMT+2"), Locale.US); in testGetHour()
42 GregorianCalendar g1 = new GregorianCalendar(TimeZone.getTimeZone("Europe/Moscow")); in test_computeTime()
55 GregorianCalendar g = new GregorianCalendar( in test_computeFields()
69 GregorianCalendar g = new GregorianCalendar( in test_hashCode()
75 GregorianCalendar g1 = new GregorianCalendar( in test_hashCode()
83 GregorianCalendar g = new GregorianCalendar( in test_setFirstDayOfWeekI()
97 GregorianCalendar g = new GregorianCalendar( in test_setMinimalDaysInFirstWeekI()
DCalendarBuilderTest.java22 import java.util.GregorianCalendar;
38 GregorianCalendar expected = new GregorianCalendar(); in test_default_values()
48 GregorianCalendar expected = new GregorianCalendar(); in test_setCalendarType_iso8601()
87 GregorianCalendar expected = new GregorianCalendar(); in test_setDate()
96 GregorianCalendar expected = new GregorianCalendar(); in test_setTimeOfDay()
110 GregorianCalendar expected = new GregorianCalendar(); in test_setWeekDate()
126 GregorianCalendar expected = new GregorianCalendar(); in test_setLenient()
137 GregorianCalendar expected = new GregorianCalendar(Locale.GERMANY); in test_setLocale()
148 GregorianCalendar expected = new GregorianCalendar(th); in test_setLocale_thTH()
157 GregorianCalendar expected = new GregorianCalendar(); in test_set()
[all …]
DCalendarTest.java23 import java.util.GregorianCalendar;
57 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); in testAddOneDayOverDstForwardAdds23HoursAt0100()
73 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); in testAddOneDayOverDstForwardAdds24HoursAt0000()
82 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); in testAddOneDayOverDstBackAdds25HoursAt0000()
91 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); in testAddOneDayOverDstBackAdds25HoursAt0100()
100 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); in testAddTwoHalfDaysOverDstForwardAdds23HoursAt0100()
109 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); in testAdd24HoursOverDstForwardAdds24Hours()
118 Calendar calendar = new GregorianCalendar(AUSTRALIA_LORD_HOWE); in testAddOneDayAndOneDayOver30MinuteDstForwardAdds48Hours()
129 Calendar calendar = new GregorianCalendar(AUSTRALIA_LORD_HOWE); in testAddTwoDaysOver30MinuteDstForwardAdds47AndAHalfHours()
153 Calendar calendar = new GregorianCalendar(timeZone); in testSetSelfConsistent()
[all …]
DGregorianCalendarTest.java25 import java.util.GregorianCalendar;
66 Calendar greg = new GregorianCalendar(LOS_ANGELES, Locale.ENGLISH); in test_computeFields_dayOfWeekAndWeekOfYearSet()
82 greg = new GregorianCalendar(LOS_ANGELES, Locale.ENGLISH); in test_computeFields_dayOfWeekAndWeekOfYearSet()
90 greg = new GregorianCalendar(LOS_ANGELES, Locale.ENGLISH); in test_computeFields_dayOfWeekAndWeekOfYearSet()
107 GregorianCalendar gc; in test_fieldsAffectedByGregorianCutOver()
110 gc = new GregorianCalendar(LOS_ANGELES, Locale.ENGLISH); in test_fieldsAffectedByGregorianCutOver()
140 gc = new GregorianCalendar(LONDON, Locale.ENGLISH); in test_fieldsAffectedByGregorianCutOver()
212 assertTrue(new GregorianCalendar().isWeekDateSupported()); in test_isWeekDateSupported()
216 GregorianCalendar cal = new GregorianCalendar(); in test_setWeekDate()
256 GregorianCalendar cal = new GregorianCalendar(); in test_getWeekYear()
[all …]
DSimpleTimeZoneTest.java24 import java.util.GregorianCalendar;
208 utc.getOffset(GregorianCalendar.BC, 100, Calendar.JANUARY, 10, Calendar.SUNDAY, 0); in testGetOffset_BC()
239 GregorianCalendar cal = new GregorianCalendar(timeZone, Locale.ENGLISH); in findDstEntryAndExit()
282 Calendar cal = new GregorianCalendar(timeZone, Locale.ENGLISH); in formatTime()
291 GregorianCalendar calendar = new GregorianCalendar(timeZone, Locale.ENGLISH); in checkDstTransitionTimes()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DSimpleDateFormatTest.java27 import java.util.GregorianCalendar;
257 Calendar cal = new GregorianCalendar(1999, Calendar.JUNE, 2, 15, 3, 6); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
261 assertFormat(format, " G", new GregorianCalendar(-1999, Calendar.JUNE, 2), " BC", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
268 assertFormat(format, " yy", new GregorianCalendar(2001, Calendar.JUNE, 2), " 01", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
270 assertFormat(format, " yy", new GregorianCalendar(2000, Calendar.JUNE, 2), " 00", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
272 assertFormat(format, " yyy", new GregorianCalendar(2000, Calendar.JUNE, 2), " 2000", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
279 assertFormat(format, " M", new GregorianCalendar(1999, Calendar.NOVEMBER, 2), " 11", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
287 assertFormat(format, " d", new GregorianCalendar(1999, Calendar.NOVEMBER, 12), " 12", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
293 assertFormat(format, " h", new GregorianCalendar(1999, Calendar.NOVEMBER, 12), " 12", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
299 assertFormat(format, " H", new GregorianCalendar(1999, Calendar.NOVEMBER, 12, 4, 0), " 4", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
[all …]
DSupport_MessageFormat.java27 import java.util.GregorianCalendar;
57 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); in t_format_with_FieldPosition()
86 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); in t_formatToCharacterIterator()
/libcore/ojluni/src/test/java/util/GregorianCalendar/
DGregorianCalendarTest.java30 package test.java.util.GregorianCalendar;
54 GregorianCalendar gc = new GregorianCalendar(); in testGregorianCalendar()
95 GregorianCalendar gc = new GregorianCalendar(); in testGregorianCalendar()
136 GregorianCalendar gc = new GregorianCalendar(); in testGregorianCalendar()
191 static void checkTimes(GregorianCalendar gc, long year, long month, long dayOfMonth, in checkTimes()
/libcore/support/src/test/java/tests/support/
DSupport_TimeZone.java21 import java.util.GregorianCalendar;
54 GregorianCalendar cal = new GregorianCalendar(); in inDaylightTime()
DSupport_MessageFormat.java25 import java.util.GregorianCalendar;
50 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); in t_format_with_FieldPosition()
77 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); in t_formatToCharacterIterator()
/libcore/ojluni/src/main/java/java/util/
DGregorianCalendar.java331 public class GregorianCalendar extends Calendar { class
592 public GregorianCalendar() { in GregorianCalendar() method in GregorianCalendar
604 public GregorianCalendar(TimeZone zone) { in GregorianCalendar() method in GregorianCalendar
614 public GregorianCalendar(Locale aLocale) { in GregorianCalendar() method in GregorianCalendar
626 public GregorianCalendar(TimeZone zone, Locale aLocale) { in GregorianCalendar() method in GregorianCalendar
641 public GregorianCalendar(int year, int month, int dayOfMonth) { in GregorianCalendar() method in GregorianCalendar
658 public GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, in GregorianCalendar() method in GregorianCalendar
678 public GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, in GregorianCalendar() method in GregorianCalendar
699 GregorianCalendar(int year, int month, int dayOfMonth, in GregorianCalendar() method in GregorianCalendar
738 GregorianCalendar(TimeZone zone, Locale locale, boolean flag) { in GregorianCalendar() method in GregorianCalendar
[all …]
DDate.java1195 GregorianCalendar cal = new GregorianCalendar(fastTime); in getTimezoneOffset()
1261 GregorianCalendar gc = new GregorianCalendar(tz); in normalize()
1263 gc.set(GregorianCalendar.MILLISECOND, ms); in normalize()
1309 || utc >= GregorianCalendar.DEFAULT_GREGORIAN_CUTOVER in getCalendarSystem()
DSimpleTimeZone.java558 BaseCalendar cal = date >= GregorianCalendar.DEFAULT_GREGORIAN_CUTOVER ? in getOffsets()
607 if (era != GregorianCalendar.AD && era != GregorianCalendar.BC) { in getOffset()
612 if (era == GregorianCalendar.BC) { in getOffset()
647 if (time < GregorianCalendar.DEFAULT_GREGORIAN_CUTOVER) { in getOffset()
665 if (!useDaylight || year < startYear || era != GregorianCalendar.CE) { in getOffset()
/libcore/luni/src/test/java/libcore/java/sql/
DOldResultSetGetterTests.java33 import java.util.GregorianCalendar;
411 GregorianCalendar testCal = new GregorianCalendar(1799, Calendar.MAY, 26, 0, 0); in testGetDateInt()
431 GregorianCalendar testCal = new GregorianCalendar(1799, Calendar.MAY, 26, 0, 0); in testGetDateIntCalendar()
453 GregorianCalendar testCal = new GregorianCalendar(1799, Calendar.MAY, 26, 0, 0); in testGetDateString()
473 GregorianCalendar testCal = new GregorianCalendar(1799, Calendar.MAY, 26, 0, 0); in testGetDateStringCalendar()
926 Calendar cal = new GregorianCalendar(); in testGetTimeInt()
938 Calendar cal2 = new GregorianCalendar(); in testGetTimeInt()
985 Calendar cal1 = new GregorianCalendar(); in testGetTimeIntCalendar()
995 Calendar cal2 = new GregorianCalendar(); in testGetTimeIntCalendar()
1011 Time timeRes = res.getTime(i,new GregorianCalendar()); in testGetTimeIntCalendar()
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestIsoChronoImpl.java73 import java.util.GregorianCalendar;
98 GregorianCalendar cal = new GregorianCalendar(); in test_IsoChrono_vsCalendar()
123 GregorianCalendar cal = new GregorianCalendar(); in test_DayOfWeek_IsoChronology_vsCalendar()
/libcore/benchmarks/src/benchmarks/regression/
DExpensiveObjectsBenchmark.java25 import java.util.GregorianCalendar;
142 new GregorianCalendar(); in timeNewGregorianCalendar()
147 GregorianCalendar gc = new GregorianCalendar(); in timeClonedGregorianCalendar()
/libcore/ojluni/src/test/java/text/testlib/
DTestUtils.java28 import java.util.GregorianCalendar;
48 return Calendar.getInstance(locale).getClass() == GregorianCalendar.class; in usesGregorianCalendar()
/libcore/luni/src/test/java/libcore/highmemorytest/java/util/
DCalendarTest.java26 import java.util.GregorianCalendar;
53 Calendar.getInstance(locale) instanceof GregorianCalendar); in testAllDefaultCalendar_Gregorian()
/libcore/luni/src/main/java/javax/xml/datatype/
DXMLGregorianCalendar.java24 import java.util.GregorianCalendar;
956 public abstract GregorianCalendar toGregorianCalendar(); in toGregorianCalendar()
1008 public abstract GregorianCalendar toGregorianCalendar( in toGregorianCalendar()
DDuration.java26 import java.util.GregorianCalendar;
371 Calendar cal = new GregorianCalendar(); in getTimeInMillis()
558 Calendar cal = new GregorianCalendar(); in addTo()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DConsoleTest.java31 import java.util.GregorianCalendar;
73 Calendar c = new GregorianCalendar(1983, 2, 21); in test_printf_LString_LObject()

12