Home
last modified time | relevance | path

Searched refs:Date (Results 1 – 25 of 2562) sorted by relevance

12345678910>>...103

/external/mockito/src/test/java/org/mockitousage/bugs/
DShouldMocksCompareToBeConsistentWithEqualsTest.java11 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/
DDateTest.java20 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/python/cpython2/Modules/_ctypes/libffi/
DChangeLog3 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/
Dutil_printd.in67 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/
DRangeDateRule.java13 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 …]
DDateRule.java12 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()
DSimpleDateRule.java12 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()
DEasterHoliday.java12 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()
DHoliday.java12 import java.util.Date;
78 public Date firstAfter(Date start) { in firstAfter()
97 public Date firstBetween(Date start, Date end) { in firstBetween()
112 public boolean isOn(Date date) { in isOn()
124 public boolean isBetween(Date start, Date end) { in isBetween()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DRangeDateRule.java14 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 …]
DDateRule.java13 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()
DSimpleDateRule.java13 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()
DEasterHoliday.java13 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()
DHoliday.java13 import java.util.Date;
75 public Date firstAfter(Date start) { in firstAfter()
93 public Date firstBetween(Date start, Date end) { in firstBetween()
107 public boolean isOn(Date date) { in isOn()
118 public boolean isBetween(Date start, Date end) { in isBetween()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/types/
DTimestampTagTest.java19 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/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DHolidayTest.java12 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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DHolidayTest.java11 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/dokka/
DREADME.android25 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/openssh/
DChangeLog3 Date: Mon Mar 20 13:38:27 2017 +1100
9 Date: Mon Mar 20 12:23:04 2017 +1100
15 Date: Mon Mar 20 01:18:59 2017 +0000
25 Date: Mon Mar 20 12:07:20 2017 +1100
33 Date: Mon Mar 20 11:53:34 2017 +1100
41 Date: Mon Mar 20 11:48:34 2017 +1100
50 Date: Mon Mar 20 09:58:34 2017 +1100
60 Date: Wed Mar 15 07:07:39 2017 +0000
71 Date: Thu Mar 16 14:05:46 2017 +1100
77 Date: Thu Mar 16 13:45:17 2017 +1100
[all …]
/external/junit-params/src/test/java/junitparams/
DParamsConverterTest.java11 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/
DTrackMetaData.java18 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/
DDatetimeSegmentFilter.java14 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()
/external/desugar/test/java/com/google/devtools/build/android/desugar/scan/testdata/
DOverlappingCollectionReferences.java17 import java.util.Date;
22 private final ArrayList<Date> dates;
28 public void add(Date date) { in add()
32 public Date first() { in first()
40 public Date max() { in max()
42 for (Date d : dates) { in max()
47 return new Date(result); in max()
DCollectionReferences.java19 import java.util.Date;
26 private final List<Date> dates;
34 public void add(Date date) { in add()
35 List<Date> l = (AbstractList<Date>) Collection.class.cast(dates); in add()
39 public Date first() { in first()
49 for (Date d : dates) { in min()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestRangeAbbreviator.java4 import java.util.Date;
21 Date[] tests = { new Date(107, 9, 15, 13, 45, 45), in main()
22 new Date(107, 9, 15, 13, 45, 46), in main()
23 new Date(107, 9, 15, 13, 46, 45), in main()
24 new Date(107, 9, 15, 14, 45, 45), in main()
25 new Date(107, 9, 16, 13, 45, 45), in main()
26 new Date(107, 10, 15, 13, 45, 45), in main()
27 new Date(108, 9, 16, 13, 45, 45), }; in main()
62 for (Date test : tests) { in main()

12345678910>>...103