/external/mockito/src/test/java/org/mockitousage/bugs/ |
D | ShouldMocksCompareToBeConsistentWithEqualsTest.java | 11 import java.util.Date; 24 Date today = mock(Date.class); in should_compare_to_be_consistent_with_equals() 25 Date tomorrow = mock(Date.class); in should_compare_to_be_consistent_with_equals() 28 Set<Date> set = new TreeSet<Date>(); in should_compare_to_be_consistent_with_equals() 39 Date today = mock(Date.class); in should_compare_to_be_consistent_with_equals_when_comparing_the_same_reference() 42 Set<Date> set = new TreeSet<Date>(); in should_compare_to_be_consistent_with_equals_when_comparing_the_same_reference() 53 Date mock = mock(Date.class); in should_allow_stubbing_and_verifying_compare_to() 54 when(mock.compareTo(any(Date.class))).thenReturn(10); in should_allow_stubbing_and_verifying_compare_to() 57 mock.compareTo(new Date()); in should_allow_stubbing_and_verifying_compare_to() 60 assertEquals(10, mock.compareTo(new Date())); in should_allow_stubbing_and_verifying_compare_to() [all …]
|
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
D | DateTest.java | 20 import java.sql.Date; 117 Date theDate = new Date(init1[i], init2[i], init3[i]); in testDateintintint() 133 Date theDate = new Date(element); in testDatelong() 145 Date theDate = new Date(TIME_TESTDATE1); in testGetHours() 160 Date theDate = new Date(TIME_TESTDATE1); in testGetMinutes() 175 Date theDate = new Date(TIME_TESTDATE1); in testGetSeconds() 190 Date theDate = new Date(TIME_TESTDATE1); in testSetHours() 205 Date theDate = new Date(TIME_TESTDATE1); in testSetMinutes() 221 Date theDate = new Date(TIME_TESTDATE1); in testSetSeconds() 249 Date theDate = new Date(theDates[i]); in testToString() [all …]
|
/external/rust/crates/chrono/src/ |
D | date.rs | 47 pub struct Date<Tz: TimeZone> { struct 53 pub const MIN_DATE: Date<Utc> = Date { date: naive::MIN_DATE, offset: Utc }; 55 pub const MAX_DATE: Date<Utc> = Date { date: naive::MAX_DATE, offset: Utc }; 57 impl<Tz: TimeZone> Date<Tz> { implementation 63 pub fn from_utc(date: NaiveDate, offset: Tz::Offset) -> Date<Tz> { in from_utc() 64 Date { date: date, offset: offset } in from_utc() 177 pub fn succ(&self) -> Date<Tz> { in succ() 185 pub fn succ_opt(&self) -> Option<Date<Tz>> { in succ_opt() 186 self.date.succ_opt().map(|date| Date::from_utc(date, self.offset.clone())) in succ_opt() 193 pub fn pred(&self) -> Date<Tz> { in pred() [all …]
|
/external/python/cpython2/Modules/_ctypes/libffi/ |
D | ChangeLog | 3 Date: Mon May 19 09:41:32 2014 -0400 9 Date: Mon May 19 09:37:21 2014 -0400 15 Date: Sun May 11 10:30:22 2014 -0400 21 Date: Sun May 11 10:22:30 2014 -0400 27 Date: Sun May 11 09:56:40 2014 -0400 33 Date: Sun May 11 09:55:28 2014 -0400 39 Date: Sun May 11 09:52:47 2014 -0400 46 Date: Wed Apr 23 19:24:47 2014 -0400 54 Date: Tue Apr 22 21:17:52 2014 -0700 61 Date: Mon Apr 21 12:41:56 2014 -0400 [all …]
|
/external/pdfium/testing/resources/javascript/ |
D | util_printd.in | 67 util.printd('mm', new Date(undefined)); 73 var d1 = new Date(2014, 06, 04, 15, 59, 58); 104 TestOneFormat("mm/dd/yyyy", new Date(1850, 0, 1)); 105 TestOneFormat("mm/dd/yyyy", new Date(2525, 11, 31)); 117 // Date with year 0. 119 TestOneFormat("mm/dd/yyyy HH:MM:ss", new Date(0, 06, 04, 15, 59, 58)); 120 // Date with month 20. 121 TestOneFormat("mm/dd/yyyy HH:MM:ss", new Date(2014, 20, 04, 15, 59, 58)); 122 // Date with day 100. 123 TestOneFormat("mm/dd/yyyy HH:MM:ss", new Date(2014, 20, 100, 15, 59, 58)); [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | RangeDateRule.java | 13 import java.util.Date; 45 add(new Date(Long.MIN_VALUE), rule); in add() 52 public void add(Date start, DateRule rule) { in add() 64 public Date firstAfter(Date start) { in firstAfter() 70 Date result = null; in firstAfter() 90 public Date firstBetween(Date start, Date end) { in firstBetween() 97 Date result = null; in firstBetween() 107 Date e = (next != null && !next.start.after(end)) ? next.start in firstBetween() 119 public boolean isOn(Date date) { in isOn() 130 public boolean isBetween(Date start, Date end) { in isBetween() [all …]
|
D | DateRule.java | 12 import java.util.Date; 42 abstract public Date firstAfter(Date start); in firstAfter() 59 abstract public Date firstBetween(Date start, Date end); in firstBetween() 73 abstract public boolean isOn(Date date); in isOn() 81 abstract public boolean isBetween(Date start, Date end); in isBetween()
|
D | SimpleDateRule.java | 12 import java.util.Date; 80 public Date firstAfter(Date start) in firstAfter() 100 public Date firstBetween(Date start, Date end) in firstBetween() 118 public boolean isOn(Date date) in isOn() 142 public boolean isBetween(Date start, Date end) in isBetween() 147 private Date doFirstBetween(Date start, Date end) in doFirstBetween() 164 Date result = computeInYear(year, c); in doFirstBetween() 179 private Date computeInYear(int year, Calendar c) in computeInYear()
|
D | EasterHoliday.java | 12 import java.util.Date; 157 calendar.setGregorianChange(new Date(Long.MAX_VALUE)); in EasterRule() 165 public Date firstAfter(Date start) in firstAfter() 175 public Date firstBetween(Date start, Date end) in firstBetween() 184 public boolean isOn(Date date) in isOn() 200 public boolean isBetween(Date start, Date end) in isBetween() 205 private Date doFirstBetween(Date start, Date end) in doFirstBetween() 212 Date result = computeInYear(start, calendar); in doFirstBetween() 248 private Date computeInYear(Date date, GregorianCalendar cal) in computeInYear()
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | RangeDateRule.java | 14 import java.util.Date; 44 add(new Date(Long.MIN_VALUE), rule); in add() 50 public void add(Date start, DateRule rule) { in add() 61 public Date firstAfter(Date start) { in firstAfter() 67 Date result = null; in firstAfter() 86 public Date firstBetween(Date start, Date end) { in firstBetween() 93 Date result = null; in firstBetween() 103 Date e = (next != null && !next.start.after(end)) ? next.start in firstBetween() 114 public boolean isOn(Date date) { in isOn() 124 public boolean isBetween(Date start, Date end) { in isBetween() [all …]
|
D | DateRule.java | 13 import java.util.Date; 42 abstract public Date firstAfter(Date start); in firstAfter() 58 abstract public Date firstBetween(Date start, Date end); in firstBetween() 71 abstract public boolean isOn(Date date); in isOn() 78 abstract public boolean isBetween(Date start, Date end); in isBetween()
|
D | SimpleDateRule.java | 13 import java.util.Date; 78 public Date firstAfter(Date start) in firstAfter() 97 public Date firstBetween(Date start, Date end) in firstBetween() 114 public boolean isOn(Date date) in isOn() 137 public boolean isBetween(Date start, Date end) in isBetween() 142 private Date doFirstBetween(Date start, Date end) in doFirstBetween() 159 Date result = computeInYear(year, c); in doFirstBetween() 174 private Date computeInYear(int year, Calendar c) in computeInYear()
|
D | EasterHoliday.java | 13 import java.util.Date; 143 calendar.setGregorianChange(new Date(Long.MAX_VALUE)); in EasterRule() 151 public Date firstAfter(Date start) in firstAfter() 161 public Date firstBetween(Date start, Date end) in firstBetween() 170 public boolean isOn(Date date) in isOn() 186 public boolean isBetween(Date start, Date end) in isBetween() 191 private Date doFirstBetween(Date start, Date end) in doFirstBetween() 198 Date result = computeInYear(start, calendar); in doFirstBetween() 234 private Date computeInYear(Date date, GregorianCalendar cal) in computeInYear()
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/types/ |
D | TimestampTagTest.java | 19 import java.util.Date; 62 …ertTrue(getMapValue("canonical: !!timestamp 2001-12-15T02:59:43.1Z", "canonical") instanceof Date); in testTimestampShorthand() local 67 "canonical") instanceof Date); in testTimestampTag() local 74 Date date = cal.getTime(); in testTimestampOut() 83 Date date = cal.getTime(); in testTimestampOutMap() 84 Map<String, Date> map = new HashMap<String, Date>(); in testTimestampOutMap() 91 Date date = (Date) getMapValue(yaml, key); in getText() 109 Date date = (Date) getMapValue("Time: 2001-11-23 15:01:42 -5", "Time"); in testTimestampReadWrite() 110 Map<String, Date> map = new HashMap<String, Date>(); in testTimestampReadWrite() 117 java.sql.Date date = new java.sql.Date(1000000000000L); in testSqlDate() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | HolidayTest.java | 11 import java.util.Date; 42 now = new Date(); in localTestInitialize() 46 private Date longTimeAgo; 47 private Date now; 104 Date first = h.firstAfter(longTimeAgo); in exerciseHoliday() 111 Date second = h.firstBetween(first, now); in exerciseHoliday() 147 final Date fStartOfMonth = startOfMonth((Calendar)c.clone()); in exerciseHoliday() 170 Date endOfMonth = c.getTime(); in exerciseHoliday() 186 Date d = fStartOfMonth; in exerciseHoliday() 213 private Date startOfMonth(/*Date dateInMonth,*/ Calendar fCalendar) in startOfMonth() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | HolidayTest.java | 12 import java.util.Date; 45 now = new Date(); in localTestInitialize() 49 private Date longTimeAgo; 50 private Date now; 107 Date first = h.firstAfter(longTimeAgo); in exerciseHoliday() 114 Date second = h.firstBetween(first, now); in exerciseHoliday() 150 final Date fStartOfMonth = startOfMonth((Calendar)c.clone()); in exerciseHoliday() 173 Date endOfMonth = c.getTime(); in exerciseHoliday() 189 Date d = fStartOfMonth; in exerciseHoliday() 216 private Date startOfMonth(/*Date dateInMonth,*/ Calendar fCalendar) in startOfMonth() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/ |
D | DateDeserializationTest.java | 21 public Date date; 27 public Date date; 38 public Date date; 59 private Date date; 65 public Date1722(Date date, String foo) { in Date1722() 70 public Date getDate() { in getDate() 74 public void setDate(Date date) { in setDate() 98 java.util.Date value = new java.util.Date(now); in testDateUtil() 101 assertEquals(value, MAPPER.readValue(""+now, java.util.Date.class)); in testDateUtil() 105 java.util.Date result = MAPPER.readValue("\""+dateStr+"\"", java.util.Date.class); in testDateUtil() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/jdk/ |
D | SqlDateSerializationTest.java | 5 import java.util.Date; 16 public java.sql.Date date; 17 public SqlDateAsDefaultBean(long l) { date = new java.sql.Date(l); } in SqlDateAsDefaultBean() 22 public java.sql.Date date; 23 public SqlDateAsNumberBean(long l) { date = new java.sql.Date(l); } in SqlDateAsNumberBean() 29 public java.sql.Date dateOfBirth; 44 final java.sql.Date date99 = new java.sql.Date(99, Calendar.APRIL, 1); in testSqlDate() 45 final java.sql.Date date0 = new java.sql.Date(0); in testSqlDate() 81 Date altTnput = new Date(0L); in testSqlTimestamp() 93 i.dateOfBirth = java.sql.Date.valueOf("1980-04-14"); in testPatternWithSqlDate() [all …]
|
D | DateSerializationTest.java | 7 import java.util.Date; 38 public Date date; 39 public DateAsNumberBean(long l) { date = new java.util.Date(l); } in DateAsNumberBean() 44 public Date date; 45 public DateAsStringBean(long l) { date = new java.util.Date(l); } in DateAsStringBean() 50 public Date date; 51 public DateAsDefaultStringBean(long l) { date = new java.util.Date(l); } in DateAsDefaultStringBean() 56 public Date date; 57 public DateInCETBean(long l) { date = new java.util.Date(l); } in DateInCETBean() 70 public Date date; [all …]
|
/external/dokka/ |
D | README.android | 25 Date: Fri Jun 14 13:54:08 2019 -0700 31 Date: Fri Jun 7 16:03:00 2019 -0700 42 Date: Tue May 21 15:53:43 2019 +0200 48 Date: Fri Apr 26 12:36:59 2019 -0700 54 Date: Fri Apr 26 11:07:17 2019 -0700 62 Date: Fri Apr 26 19:23:16 2019 +0200 74 Date: Wed Apr 24 15:57:39 2019 +0200 80 Date: Thu Apr 25 15:07:32 2019 +0200 86 Date: Thu Apr 25 07:38:21 2019 +0200 104 Date: Mon Apr 22 16:19:44 2019 +0200 [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | DateIntervalFormatTest.java | 23 import java.util.Date; 848 Date date, date_2; in expect() 940 Date date, date_2; in expectUserDII() 1072 Date date, date_2; in expectUserCLDR() 1233 Date date; in stress() 1234 Date date_2; in stress() 2181 Date input1 = new Date(2018 - 1900, 6, 20); in testFormattedDateInterval() 2182 Date input2 = new Date(2018 - 1900, 6, 25); in testFormattedDateInterval() 2256 calendar.setTime(new Date(1563235200000L)); in testTicket20707() 2268 …{ new Date(2019, 2, 10, 1, 23, 45), 321, new Date(2019, 2, 10, 1, 23, 45), 321, "ms", "23:45"}, in testFormatMillisecond() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | DateIntervalFormatTest.java | 22 import java.util.Date; 845 Date date, date_2; in expect() 937 Date date, date_2; in expectUserDII() 1069 Date date, date_2; in expectUserCLDR() 1230 Date date; in stress() 1231 Date date_2; in stress() 2178 Date input1 = new Date(2018 - 1900, 6, 20); in testFormattedDateInterval() 2179 Date input2 = new Date(2018 - 1900, 6, 25); in testFormattedDateInterval() 2253 calendar.setTime(new Date(1563235200000L)); in testTicket20707() 2265 …{ new Date(2019, 2, 10, 1, 23, 45), 321, new Date(2019, 2, 10, 1, 23, 45), 321, "ms", "23:45"}, in testFormatMillisecond() [all …]
|
/external/junit-params/src/test/java/junitparams/ |
D | ParamsConverterTest.java | 11 import java.util.Date; 31 @ConvertParam(value = StringToDateConverter.class, options = "dd.MM.yyyy") Date date) { in convertSingleParam() 39 @ConvertParam(value = StringToDateConverter.class, options = "dd.MM.yyyy") Date date, in convertMultipleParams() 49 @ConvertParam(value = StringToDateConverter.class, options = "dd.MM.yyyy") Date date) { in convertParamsFromMethod() 56 …c void convertParamsUsingParamAnnotation(@Param(converter = SimpleDateConverter.class) Date date) { in convertParamsUsingParamAnnotation() 63 public void convertParamsUsingCustomParamAnnotation(@DateParam Date date) { in convertParamsUsingCustomParamAnnotation() 70 public void convertParamsFromMethodUsingCustomParamAnnotation(@DateParam Date date) { in convertParamsFromMethodUsingCustomParamAnnotation() 81 …ParamsUsingCustomParamAnnotationOverridingAttributes(@DateParam(format = "yyyy-MM-dd") Date date) { in convertParamsUsingCustomParamAnnotationOverridingAttributes() 100 private Calendar createCalendarWithDate(Date date) { in createCalendarWithDate() 112 public static class StringToDateConverter implements ParamConverter<Date> { [all …]
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/ |
D | TrackMetaData.java | 18 import java.util.Date; 26 private Date modificationTime = new Date(); 27 private Date creationTime = new Date(); 59 public Date getModificationTime() { in getModificationTime() 63 public void setModificationTime(Date modificationTime) { in setModificationTime() 67 public Date getCreationTime() { in getCreationTime() 71 public void setCreationTime(Date creationTime) { in setCreationTime()
|
/external/autotest/frontend/client/src/autotest/common/table/ |
D | DatetimeSegmentFilter.java | 14 import java.util.Date; 75 Date newEndDate = parse(newEndDateValue); in updateStartDateConstraint() 77 Date startDateConstraint = minimumStartDate(newEndDate); in updateStartDateConstraint() 78 Date newStartDate = startDateConstraint; in updateStartDateConstraint() 81 Date currentStartDate = parse(currentStartDateStr); in updateStartDateConstraint() 90 public static String format(Date date) { in format() 94 public static Date parse(String date) { in parse() 98 public static Date minimumStartDate(Date endDate) { in minimumStartDate() 100 return new Date(sinceEpoch - MAXIMUM_TIME_RANGE_MS); in minimumStartDate() 124 Date placeHolderDate = new Date(); in getDateTimeStringOffsetFromToday()
|