Searched defs:date (Results 1 - 25 of 87) sorted by relevance

1234

/libcore/benchmarks/src/benchmarks/regression/
H A DDateToStringBenchmark.java27 Date date; field in class:DateToStringBenchmark
33 date = new Date(0);
35 calendar.setTime(date);
41 date.toString();
47 new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy").format(date);
53 ((SimpleDateFormat) format.clone()).format(date);
/libcore/luni/src/test/java/libcore/java/util/
H A DCalendarWeekOfMonthTest.java38 private final String date; field in class:CalendarWeekOfMonthTest
208 public CalendarWeekOfMonthTest(long timeInMillis, String date, int firstDayOfWeek, argument
211 this.date = date;
231 + ", date='" + date + '\'' + ", firstDayOfWeek=" + firstDayOfWeek
H A DOldTimeZoneTest.java39 public boolean inDaylightTime(Date date) { argument
/libcore/ojluni/src/main/java/java/security/cert/
H A DCertPathHelperImpl.java63 protected void implSetDateAndTime(X509CRLSelector sel, Date date, long skew) { argument
64 sel.setDateAndTime(date, skew);
H A DX509Certificate.java121 * the current date and time are within the validity period given in the
124 * The validity period consists of two date/time values:
148 * Checks that the given date is within the certificate's
150 * certificate would be valid at the given date/time.
152 * @param date the Date to check against to see if this certificate
153 * is valid at that date/time.
156 * with respect to the {@code date} supplied.
158 * yet valid with respect to the {@code date} supplied.
162 public abstract void checkValidity(Date date) argument
297 * Gets the {@code notBefore} date fro
[all...]
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DCertPathHelper.java60 protected abstract void implSetDateAndTime(X509CRLSelector sel, Date date, long skew); argument
67 public static void setDateAndTime(X509CRLSelector sel, Date date, long skew) { argument
68 instance.implSetDateAndTime(sel, date, skew);
/libcore/ojluni/src/main/java/sun/util/calendar/
H A DGregorian.java72 public Date getCalendarDate(long millis, CalendarDate date) { argument
73 return (Date) super.getCalendarDate(millis, date);
/libcore/ojluni/src/test/java/time/tck/java/time/format/
H A DTCKLocalizedFieldPrinter.java99 LocalDate date = LocalDate.of(2012, 7, 20);
101 String result = b.toFormatter(locale).format(date);
123 public void test_print_WeekBasedYear(String pattern, String expectedText, LocalDate date) { argument
125 String result = dtf.format(date);
H A DTCKLocalizedPrinterParser.java117 @DataProvider(name="date")
143 @Test(dataProvider="date")
144 public void test_date_print(LocalDate date, FormatStyle dateStyle, int dateStyleOld, Locale locale) { argument
146 Date oldDate = new Date(date.getYear() - 1900, date.getMonthValue() - 1, date.getDayOfMonth());
150 String formatted = f.format(date);
155 @Test(dataProvider="date")
156 public void test_date_parse(LocalDate date, FormatStyle dateStyle, int dateStyleOld, Locale locale) { argument
158 Date oldDate = new Date(date
[all...]
/libcore/ojluni/src/main/java/java/sql/
H A DDate.java53 * @deprecated instead use the constructor <code>Date(long date)</code>
67 * @param date milliseconds since January 1, 1970, 00:00:00 GMT not
72 public Date(long date) { argument
73 // If the millisecond date value contains time info, mask it out.
74 super(date);
86 * @param date milliseconds since January 1, 1970, 00:00:00 GMT not
91 public void setTime(long date) { argument
92 // If the millisecond date value contains time info, mask it out.
93 super.setTime(date);
97 * Converts a string in JDBC date escap
[all...]
H A DTimestamp.java53 * because the nanos component of a date is unknown.
78 * @param date 1 to 31
87 public Timestamp(int year, int month, int date, argument
89 super(year, month, date, hour, minute, second);
99 * integral seconds are stored in the underlying date value; the
140 * represented by this date.
195 // Split the string into date and time components
205 // Parse the date
216 // Convert the date
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/
H A DTCKChronoLocalDateSerialization.java110 public void test_ChronoSerialization(ChronoLocalDate date, int dateType) throws Exception { argument
111 assertSerializable(date);
118 private void test_serialization_format(ChronoLocalDate date, int dateType) throws Exception { argument
122 dos.writeInt(date.get(YEAR));
123 dos.writeByte(date.get(MONTH_OF_YEAR));
124 dos.writeByte(date.get(DAY_OF_MONTH));
127 assertSerializedBySer(date, bytes);
136 HijrahDate date = HijrahDate.of(1433, 10, 29);
155 dos.writeInt(date.get(YEAR));
156 dos.writeByte(date
[all...]
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
H A DTCKJulianFields.java128 public void test_samples_get(TemporalField field, LocalDate date, long expected) { argument
129 assertEquals(date.getLong(field), expected);
133 public void test_samples_set(TemporalField field, LocalDate date, long value) { argument
134 assertEquals(field.adjustInto(LocalDate.MAX, value), date);
135 assertEquals(field.adjustInto(LocalDate.MIN, value), date);
136 assertEquals(field.adjustInto(JAN01_1970, value), date);
137 assertEquals(field.adjustInto(DEC31_1969, value), date);
138 assertEquals(field.adjustInto(NOV12_1945, value), date);
143 public void test_samples_parse_STRICT(TemporalField field, LocalDate date, long value) { argument
147 assertEquals(parsed, date);
151 test_samples_parse_SMART(TemporalField field, LocalDate date, long value) argument
159 test_samples_parse_LENIENT(TemporalField field, LocalDate date, long value) argument
[all...]
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
H A DTestChronoLocalDate.java77 * Test chrono local date.
86 ChronoLocalDate date = LocalDate.of(2013, 1, 1);
89 dates.add(date.minus(10, ChronoUnit.YEARS));
90 dates.add(date.minus(1, ChronoUnit.YEARS));
91 dates.add(date.minus(1, ChronoUnit.MONTHS));
92 dates.add(date.minus(1, ChronoUnit.WEEKS));
93 dates.add(date.minus(1, ChronoUnit.DAYS));
94 dates.add(date);
95 dates.add(date.plus(1, ChronoUnit.DAYS));
96 dates.add(date
173 processOK(D date) argument
[all...]
H A DTestExampleCode.java88 // Print the Thai Buddhist date
100 ChronoLocalDate date = chrono.dateNow();
101 System.out.printf(" %20s: %s%n", chrono.getId(), date.toString());
104 // Print today's date and the last day of the year for the Thai Buddhist Calendar.
144 ChronoLocalDate date = chrono.dateNow();
145 System.out.printf(" %20s: %s%n", chrono.getId(), date.toString());
148 // Print the Thai Buddhist date
157 // Print today's date and the last day of the year for the Thai Buddhist Calendar.
169 HijrahDate hd2 = HijrahChronology.INSTANCE.date(1200, 1, 1);
181 ChronoLocalDate date
203 next(D date) argument
215 tomorrowNoon(D date) argument
[all...]
/libcore/luni/src/test/java/libcore/java/text/
H A DOldDateFormatTest.java46 public StringBuffer format(Date date, StringBuffer toAppendTo, argument
96 assertTrue("Incorrect date format", sdf.format(current).equals(dtf));
118 assertTrue("Incorrect date format", sdf.format(current).equals(
225 Date date = format.parse(format.format(current).toString());
226 assertEquals(current.getDate(), date.getDate());
227 assertEquals(current.getDay(), date.getDay());
228 assertEquals(current.getMonth(), date.getMonth());
229 assertEquals(current.getYear(), date.getYear());
230 assertEquals(current.getHours(), date.getHours());
231 assertEquals(current.getMinutes(), date
[all...]
/libcore/luni/src/test/java/tests/java/sql/
H A DSelectFunctionalityTest.java48 private static Date date; field in class:SelectFunctionalityTest
102 date = new Date(currentTime);
159 date.toString(), result.getDate("fdate").toString());
193 prepStatement.setDate(9, date);
220 date.toString(), result.getDate("fdate").toString());
/libcore/ojluni/src/main/java/javax/security/cert/
H A DX509Certificate.java258 * the current date and time are within the validity period given in the
261 * The validity period consists of two date/time values:
285 * Checks that the specified date is within the certificate's
287 * certificate would be valid at the specified date/time.
289 * @param date the Date to check against to see if this certificate
290 * is valid at that date/time.
292 * with respect to the {@code date} supplied.
294 * yet valid with respect to the {@code date} supplied.
297 public abstract void checkValidity(Date date) argument
381 * Gets the {@code notBefore} date fro
[all...]
/libcore/ojluni/src/main/java/sun/security/x509/
H A DInvalidityDateExtension.java38 * The invalidity date is a non-critical CRL entry extension that
39 * provides the date on which it is known or suspected that the private
41 * This date may be earlier than the revocation date in the CRL entry,
42 * which is the date at which the CA processed the revocation. When a
44 * date may precede the date of issue of earlier CRLs, but the
45 * revocation date SHOULD NOT precede the date of issue of earlier CRLs.
67 public static final String DATE = "date";
69 private Date date; field in class:InvalidityDateExtension
87 InvalidityDateExtension(Date date) argument
97 InvalidityDateExtension(boolean critical, Date date) argument
[all...]
/libcore/luni/src/main/java/javax/xml/datatype/
H A DDuration.java96 * <p>Return the name of the XML Schema date/time type that this instance
105 * <i>(timezone is optional for all date/time datatypes)</i>
154 * @throws IllegalStateException If the combination of set fields does not match one of the XML Schema date/time datatypes.
198 + " this Duration does not match one of the XML Schema date/time datatypes:"
534 * The given date is first converted into
546 * @param date
547 * A date object whose value will be modified.
549 * if the date parameter is null.
551 public void addTo(Date date) { argument
554 if (date
[all...]
/libcore/luni/src/test/java/libcore/java/time/chrono/
H A DChronologyTest.java95 public ChronoLocalDate date(int prolepticYear, int month, int dayOfMonth) { method in class:ChronologyTest.DummyChronology
110 public ChronoLocalDate date(TemporalAccessor temporal) { method in class:ChronologyTest.DummyChronology
/libcore/ojluni/src/main/java/com/sun/security/cert/internal/x509/
H A DX509V1CertImpl.java172 * Checks that the specified date is within the certificate's
174 * valid at the specified date/time.
176 * @param date the Date to check against to see if this certificate
177 * is valid at that date/time.
179 public void checkValidity(Date date) throws argument
182 wrappedCert.checkValidity(date);
250 * Gets the notBefore date from the validity period of the certificate.
252 * @return the start date of the validity period.
260 * Gets the notAfter date from the validity period of the certificate.
262 * @return the end date o
[all...]
/libcore/ojluni/src/main/java/java/time/chrono/
H A DJapaneseEra.java149 CalendarDate date = ERA_CONFIG[i].getSinceDate();
150 LocalDate isoDate = LocalDate.of(date.getYear(), date.getMonth(), date.getDayOfMonth());
168 * @param since the date representing the first date of the era, validated not null
241 * Obtains an instance of {@code JapaneseEra} from a date.
243 * @param date the date, not null
246 static JapaneseEra from(LocalDate date) { argument
[all...]
H A DMinguoChronology.java164 * Obtains a local date in Minguo calendar system from the
171 * @return the Minguo local date, not null
172 * @throws DateTimeException if unable to create the date
176 public MinguoDate date(Era era, int yearOfEra, int month, int dayOfMonth) { method in class:MinguoChronology
177 return date(prolepticYear(era, yearOfEra), month, dayOfMonth);
181 * Obtains a local date in Minguo calendar system from the
187 * @return the Minguo local date, not null
188 * @throws DateTimeException if unable to create the date
191 public MinguoDate date(int prolepticYear, int month, int dayOfMonth) { method in class:MinguoChronology
196 * Obtains a local date i
253 public MinguoDate date(TemporalAccessor temporal) { method in class:MinguoChronology
[all...]
/libcore/ojluni/src/main/java/java/time/temporal/
H A DIsoFields.java101 * The complete date is expressed using three fields:
111 * alternate way of expressing the date, based on the concept of week-based-year.
113 * The date is expressed using three fields:
171 * In the resolving phase of parsing, a date can be created from a year,
181 * If the day-of-quarter exceeds the actual range by one day, then the resulting date
183 * then the resulting date is two days later.
186 * against the range of valid values. The resulting date is calculated equivalent to
187 * the following three stage approach. First, create a date on the first of January
189 * amount in quarters to the date. Finally, take the day-of-quarter, subtract one,
190 * and add the amount in days to the date
585 getWeekRange(LocalDate date) argument
599 getWeek(LocalDate date) argument
621 getWeekBasedYear(LocalDate date) argument
[all...]

Completed in 844 milliseconds

1234