Home
last modified time | relevance | path

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

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DGregorianCalendarTest.java23 import java.util.GregorianCalendar;
39 assertTrue("Constructed incorrect calendar", (new GregorianCalendar() in test_Constructor()
48 GregorianCalendar gc = new GregorianCalendar(1972, Calendar.OCTOBER, 13); in test_ConstructorIII()
65 GregorianCalendar gc = new GregorianCalendar(1972, Calendar.OCTOBER, in test_ConstructorIIIII()
82 gc = new GregorianCalendar(1900, 0, 0, 0, Integer.MAX_VALUE); in test_ConstructorIIIII()
94 GregorianCalendar gc = new GregorianCalendar(1972, Calendar.OCTOBER, in test_ConstructorIIIIII()
119 GregorianCalendar gcJapan = new GregorianCalendar(Locale.JAPAN); in test_ConstructorLjava_util_Locale()
121 GregorianCalendar gcJapan2 = new GregorianCalendar(Locale.JAPAN); in test_ConstructorLjava_util_Locale()
123 GregorianCalendar gcItaly = new GregorianCalendar(Locale.ITALY); in test_ConstructorLjava_util_Locale()
136 GregorianCalendar gc1 = new GregorianCalendar(AMERICA_NEW_YORK); in test_ConstructorLjava_util_TimeZone()
[all …]
DDateTest.java22 import java.util.GregorianCalendar;
33 GregorianCalendar gc = new GregorianCalendar(1998, Calendar.OCTOBER, in test_Constructor()
54 Calendar cal = new GregorianCalendar(1999, Calendar.JUNE, 22); in test_ConstructorIII()
202 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getDate()
212 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getDay()
222 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getHours()
232 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getMinutes()
242 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getMonth()
252 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) in test_getSeconds()
281 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()
DCalendarTest.java21 import java.util.GregorianCalendar;
54 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); in testAddOneDayOverDstForwardAdds23HoursAt0100()
70 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); in testAddOneDayOverDstForwardAdds24HoursAt0000()
79 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); in testAddOneDayOverDstBackAdds25HoursAt0000()
88 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); in testAddOneDayOverDstBackAdds25HoursAt0100()
97 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); in testAddTwoHalfDaysOverDstForwardAdds23HoursAt0100()
106 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); in testAdd24HoursOverDstForwardAdds24Hours()
115 Calendar calendar = new GregorianCalendar(AUSTRALIA_LORD_HOWE); in testAddOneDayAndOneDayOver30MinuteDstForwardAdds48Hours()
126 Calendar calendar = new GregorianCalendar(AUSTRALIA_LORD_HOWE); in testAddTwoDaysOver30MinuteDstForwardAdds47AndAHalfHours()
150 Calendar calendar = new GregorianCalendar(timeZone); in testSetSelfConsistent()
[all …]
DGregorianCalendarTest.java22 import java.util.GregorianCalendar;
28 Calendar greg = GregorianCalendar.getInstance(); in test_computeFields_dayOfWeekAndWeekOfYearSet()
39 greg = GregorianCalendar.getInstance(); in test_computeFields_dayOfWeekAndWeekOfYearSet()
49 greg = GregorianCalendar.getInstance(); in test_computeFields_dayOfWeekAndWeekOfYearSet()
DFormatterTest.java21 import java.util.GregorianCalendar;
168 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;
262 Calendar cal = new GregorianCalendar(1999, Calendar.JUNE, 2, 15, 3, 6); in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
266 assertFormat(" G", new GregorianCalendar(-1999, Calendar.JUNE, 2), " BC", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
273 assertFormat(" yy", new GregorianCalendar(2001, Calendar.JUNE, 2), " 01", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
275 assertFormat(" yy", new GregorianCalendar(2000, Calendar.JUNE, 2), " 00", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
277 assertFormat(" yyy", new GregorianCalendar(2000, Calendar.JUNE, 2), " 2000", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
284 assertFormat(" M", new GregorianCalendar(1999, Calendar.NOVEMBER, 2), " 11", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
292 assertFormat(" d", new GregorianCalendar(1999, Calendar.NOVEMBER, 12), " 12", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
298 assertFormat(" h", new GregorianCalendar(1999, Calendar.NOVEMBER, 12), " 12", in test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition()
304 assertFormat(" 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;
51 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/main/java/java/util/
DDate.java76 GregorianCalendar cal = new GregorianCalendar(false); in Date()
100 GregorianCalendar cal = new GregorianCalendar(false); in Date()
127 GregorianCalendar cal = new GregorianCalendar(false); in Date()
243 return new GregorianCalendar(milliseconds).get(Calendar.DATE); in getDate()
255 return new GregorianCalendar(milliseconds).get(Calendar.DAY_OF_WEEK) - 1; in getDay()
267 return new GregorianCalendar(milliseconds).get(Calendar.HOUR_OF_DAY); in getHours()
279 return new GregorianCalendar(milliseconds).get(Calendar.MINUTE); in getMinutes()
291 return new GregorianCalendar(milliseconds).get(Calendar.MONTH); in getMonth()
303 return new GregorianCalendar(milliseconds).get(Calendar.SECOND); in getSeconds()
325 GregorianCalendar cal = new GregorianCalendar(milliseconds); in getTimezoneOffset()
[all …]
DGregorianCalendar.java184 public class GregorianCalendar extends Calendar { class
230 public GregorianCalendar() { in GregorianCalendar() method in GregorianCalendar
245 public GregorianCalendar(int year, int month, int day) { in GregorianCalendar() method in GregorianCalendar
265 public GregorianCalendar(int year, int month, int day, int hour, int minute) { in GregorianCalendar() method in GregorianCalendar
287 public GregorianCalendar(int year, int month, int day, int hour, in GregorianCalendar() method in GregorianCalendar
293 GregorianCalendar(long milliseconds) { in GregorianCalendar() method in GregorianCalendar
305 public GregorianCalendar(Locale locale) { in GregorianCalendar() method in GregorianCalendar
316 public GregorianCalendar(TimeZone timezone) { in GregorianCalendar() method in GregorianCalendar
329 public GregorianCalendar(TimeZone timezone, Locale locale) { in GregorianCalendar() method in GregorianCalendar
343 public GregorianCalendar(boolean ignored) { in GregorianCalendar() method in GregorianCalendar
[all …]
DSimpleTimeZone.java343 if (era != GregorianCalendar.BC && era != GregorianCalendar.AD) { in getOffset()
351 if (!useDaylightTime() || era != GregorianCalendar.AD || year < startYear) { in getOffset()
375 daysInMonth = GregorianCalendar.DaysInMonth[startMonth]; in getOffset()
418 daysInMonth = GregorianCalendar.DaysInMonth[endMonth]; in getOffset()
453 ruleDay += GregorianCalendar.DaysInMonth[ruleMonth]; in getOffset()
478 return getOffset(GregorianCalendar.AD, fields[0], fields[1], fields[2], in getOffset()
568 if (day <= 0 || day > GregorianCalendar.DaysInMonth[month]) { in checkDay()
853 Calendar cal = new GregorianCalendar(this); in writeObject()
878 fields.put("monthLength", GregorianCalendar.DaysInMonth); in writeObject()
DCalendar.java972 return new GregorianCalendar(); in getInstance()
980 return new GregorianCalendar(locale); in getInstance()
988 return new GregorianCalendar(timezone); in getInstance()
996 return new GregorianCalendar(timezone, locale); in getInstance()
/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/main/java/org/apache/harmony/security/asn1/
DASN1Time.java27 import java.util.GregorianCalendar;
44 GregorianCalendar c = new GregorianCalendar(TimeZone.getTimeZone("GMT")); in getDecodedObject()
/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/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/benchmarks/src/benchmarks/regression/
DDateToStringBenchmark.java25 import java.util.GregorianCalendar;
35 calendar = new GregorianCalendar(); in setUp()
DExpensiveObjectsBenchmark.java140 new GregorianCalendar(); in timeNewGregorianCalendar()
145 GregorianCalendar gc = new GregorianCalendar(); in timeClonedGregorianCalendar()
/libcore/luni/src/main/java/java/util/zip/
DZipEntry.java28 import java.util.GregorianCalendar;
176 GregorianCalendar cal = new GregorianCalendar(); in getTime()
289 GregorianCalendar cal = new GregorianCalendar(); in setTime()
/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/test/java/libcore/java/text/
DSimpleDateFormatTest.java24 import java.util.GregorianCalendar;
283 Calendar calendar = new GregorianCalendar(AMERICA_LOS_ANGELES); in testDstZoneNameWithNonDstTimestamp()
291 Calendar calendar = new GregorianCalendar(AMERICA_LOS_ANGELES); in testNonDstZoneNameWithDstTimestamp()
300 Calendar calendar = new GregorianCalendar(AUSTRALIA_LORD_HOWE); in testDstZoneWithNonDstTimestampForNonHourDstZone()
308 Calendar calendar = new GregorianCalendar(AUSTRALIA_LORD_HOWE); in testNonDstZoneWithDstTimestampForNonHourDstZone()

12