Home
last modified time | relevance | path

Searched refs:GregorianCalendar (Results 1 – 25 of 43) 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.java23 import java.util.GregorianCalendar;
34 GregorianCalendar gc = new GregorianCalendar(1998, Calendar.OCTOBER, in test_Constructor()
55 Calendar cal = new GregorianCalendar(1999, Calendar.JUNE, 22); in test_ConstructorIII()
203 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getDate()
213 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getDay()
223 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getHours()
233 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getMinutes()
243 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getMonth()
253 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getSeconds()
282 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.java22 import java.util.GregorianCalendar;
210 GregorianCalendar cal = new GregorianCalendar(timeZone, Locale.ENGLISH); in findDstEntryAndExit()
253 Calendar cal = new GregorianCalendar(timeZone, Locale.ENGLISH); in formatTime()
262 GregorianCalendar calendar = new GregorianCalendar(timeZone, Locale.ENGLISH); in checkDstTransitionTimes()
DFormatterTest.java25 import java.util.GregorianCalendar;
184 Calendar c = new GregorianCalendar(utc); in checkFormat()
/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.java25 import java.util.GregorianCalendar;
53 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); in t_format_with_FieldPosition()
82 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); in t_formatToCharacterIterator()
/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/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/main/java/java/util/
DGregorianCalendar.java331 public class GregorianCalendar extends Calendar { class
591 public GregorianCalendar() { in GregorianCalendar() method in GregorianCalendar
603 public GregorianCalendar(TimeZone zone) { in GregorianCalendar() method in GregorianCalendar
613 public GregorianCalendar(Locale aLocale) { in GregorianCalendar() method in GregorianCalendar
625 public GregorianCalendar(TimeZone zone, Locale aLocale) { in GregorianCalendar() method in GregorianCalendar
640 public GregorianCalendar(int year, int month, int dayOfMonth) { in GregorianCalendar() method in GregorianCalendar
657 public GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, in GregorianCalendar() method in GregorianCalendar
677 public GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, in GregorianCalendar() method in GregorianCalendar
698 GregorianCalendar(int year, int month, int dayOfMonth, in GregorianCalendar() method in GregorianCalendar
737 GregorianCalendar(TimeZone zone, Locale locale, boolean flag) { in GregorianCalendar() method in GregorianCalendar
[all …]
DDate.java1193 GregorianCalendar cal = new GregorianCalendar(fastTime); in getTimezoneOffset()
1259 GregorianCalendar gc = new GregorianCalendar(tz); in normalize()
1261 gc.set(GregorianCalendar.MILLISECOND, ms); in normalize()
1307 || 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/ojluni/src/test/java/time/test/java/time/chrono/
DTestIsoChronoImpl.java71 import java.util.GregorianCalendar;
95 GregorianCalendar cal = new GregorianCalendar(); in test_IsoChrono_vsCalendar()
120 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/luni/src/test/java/libcore/libcore/icu/
DICUCalendarTest.java24 import android.icu.util.GregorianCalendar;
43 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()
/libcore/luni/src/main/java/libcore/icu/
DDateUtilsBridge.java20 import android.icu.util.GregorianCalendar;
61 Calendar calendar = new GregorianCalendar(icuTimeZone, icuLocale); in createIcuCalendar()

12