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

/libcore/luni/src/main/java/org/apache/harmony/security/x509/
H A DInvalidityDate.java35 /** invalidity date value */
36 private final Date date; field in class:InvalidityDate
43 date = (Date) ASN1.decode(encoding);
47 * Returns the invalidity date.
50 return date;
58 encoding = ASN1.encode(date);
64 sb.append(prefix).append("Invalidity Date: [ ").append(date).append(" ]\n");
/libcore/luni/src/main/java/javax/security/cert/
H A DX509Certificate.java147 public void checkValidity(Date date)
151 cert.checkValidity(date);
243 * Checks whether the certificate is valid at the specified date.
245 * @param date
246 * the date to check the validity against.
253 public abstract void checkValidity(Date date) argument
342 * Returns the {@code notBefore} date from the validity period of the
350 * Returns the {@code notAfter} date of the validity period of the
/libcore/luni/src/main/java/java/security/cert/
H A DX509Certificate.java103 * Checks whether the certificate is valid at the specified date.
105 * @param date
106 * the date to check the validity against.
113 public abstract void checkValidity(Date date) argument
254 * Returns the {@code notBefore} date from the validity period of the
262 * Returns the {@code notAfter} date of the validity period of the
H A DPKIXParameters.java50 private Date date; field in class:PKIXParameters
322 return date == null ? null : (Date)date.clone();
329 * @param date
333 public void setDate(Date date) { argument
334 this.date = (date == null ? null : new Date(date.getTime()));
567 sb.append(date);
/libcore/luni/src/main/java/java/sql/
H A DDate.java23 * Dates are represented in SQL as {@code yyyy-MM-dd}. Note that this date
33 * date implied by the time value.
60 * Creates a date which corresponds to the day determined by the supplied
156 * Sets this date to a date supplied as a milliseconds value. The date is
172 * Produces a string representation of the date in SQL format
174 * @return a string representation of the date in SQL format - {@code "yyyy-MM-dd"}.
194 private void format(int date, int digits, StringBuilder sb) { argument
195 String str = String.valueOf(date);
[all...]
H A DTime.java33 * <i>Day</i> elements of the {@code Time} object are set to the date
202 private void format(int date, int digits, StringBuilder sb) { argument
203 String str = String.valueOf(date);
H A DTimestamp.java28 * addition to the regular date/time value which has millisecond resolution.
30 * The {@code Timestamp} class consists of a regular date/time value, where only
384 private void format(int date, int digits, StringBuilder sb) { argument
385 String str = String.valueOf(date);
/libcore/luni/src/test/java/libcore/java/text/
H A DOldDateFormatTest.java46 public StringBuffer format(Date date, StringBuffer toAppendTo, argument
94 assertTrue("Incorrect date format", sdf.format(current).equals(dtf));
114 assertTrue("Incorrect date format", sdf.format(current).equals(
219 Date date = format.parse(format.format(current).toString());
220 assertEquals(current.getDate(), date.getDate());
221 assertEquals(current.getDay(), date.getDay());
222 assertEquals(current.getMonth(), date.getMonth());
223 assertEquals(current.getYear(), date.getYear());
224 assertEquals(current.getHours(), date.getHours());
225 assertEquals(current.getMinutes(), date
[all...]
H A DOldSimpleDateFormatTest.java78 String expected2, Date date) {
82 format.format(date));
86 format.format(date));
77 verifyFormatTimezone(String timeZoneId, String expected1, String expected2, Date date) argument
/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/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/util/
H A DOldTimeZoneTest.java41 public boolean inDaylightTime(Date date) { argument
/libcore/luni/src/main/java/java/util/
H A DDate.java56 * the specified date.
76 * Constructs a new {@code Date} initialized to the specified date and time in the
101 * Constructs a new {@code Date} initialized to the specified date and time in the
139 * Constructs a new {@code Date} initialized to the date and time parsed from the
155 * @param date
160 public boolean after(Date date) { argument
161 return milliseconds > date.milliseconds;
167 * @param date
172 public boolean before(Date date) { argument
173 return milliseconds < date
201 compareTo(Date date) argument
[all...]
H A DGregorianCalendar.java33 * default to the date the Gregorian calendar was instituted (October 15, 1582
34 * in some countries, later in others). The cutover date may be changed by the
54 * date, leap year rules were applied irregularly, and before 45 BC the Julian
125 * // and the current date and time
227 * Constructs a new {@code GregorianCalendar} initialized to the current date and
236 * {@code TimeZone} and {@code Locale} on the specified date.
251 * Constructs a new {@code GregorianCalendar} initialized to the specified date and
271 * Constructs a new {@code GregorianCalendar} initialized to the specified date and
299 * Constructs a new {@code GregorianCalendar} initialized to the current date and
310 * Constructs a new {@code GregorianCalendar} initialized to the current date an
1233 setGregorianChange(Date date) argument
[all...]
H A DCalendar.java46 * have been initialized with the current date and time: <blockquote>
54 * to implement the date-time formatting for a particular language and calendar
150 * The date or time format strings are not part of the definition of a calendar,
257 * 1, the resultant date must be between Tuesday June 1 and Saturday June 5.
271 * 31, 1999, not March 28, 1999. By saving the original date and using either
295 * is effectively "are the values in fields[] up-to-date?" --- {@code fields[]} may contain
298 * Accessing the fields via {@code get} will ensure the fields are up-to-date.
305 * Accessing the fields via {@code get} will ensure the fields are up-to-date.
314 * whether the value is up-to-date.
323 * is out-of-date wit
1319 setTime(Date date) argument
[all...]
/libcore/luni/src/main/java/libcore/net/http/
H A DRequestHeaders.java258 public void setIfModifiedSince(Date date) { argument
262 String formattedDate = HttpDate.format(date);
/libcore/luni/src/main/java/org/apache/harmony/security/provider/cert/
H A DX509CertImpl.java136 public void checkValidity(Date date) argument
138 checkValidity(date.getTime());
/libcore/luni/src/test/java/tests/security/cert/
H A DX509Certificate2Test.java177 public void checkValidity(Date date) { argument
H A DX509CertSelectorTest.java347 assertTrue("The returned date should be equal to specified", date1
350 assertTrue("The returned date should be equal to specified", date1
352 assertFalse("The returned date should differ", date2.equals(selector
355 assertTrue("The returned date should be equal to specified", date3
471 assertTrue("The returned date should be equal to specified", Arrays
599 assertEquals("The returned date should be equal to specified", p1, selector.getPolicy());
602 assertEquals("The returned date should be equal to specified", p2, selector.getPolicy());
615 assertTrue("The returned date should be equal to specified", date1
618 assertTrue("The returned date should be equal to specified", date1
620 assertFalse("The returned date shoul
1697 protected Date date = null; field in class:X509CertSelectorTest.TestCert
1758 TestCert(Date date) argument
1833 setDate(Date date) argument
1865 checkValidity(Date date) argument
[all...]
/libcore/luni/src/main/java/java/text/
H A DSimpleDateFormat.java52 * to the ISO 8601 international standard date format.
385 * Changes the pattern of this simple date format to the specified pattern
396 * Changes the pattern of this simple date format to the specified pattern
413 * properties as this simple date format.
429 * Compares the specified object with this simple date format and indicates
436 * @return {@code true} if the specified object is equal to this simple date
454 * Formats the specified object using the rules of this simple date format
456 * date and attributes.
460 * @return an {@code AttributedCharacterIterator} with the formatted date
465 * if the object cannot be formatted by this simple date
483 formatToCharacterIteratorImpl(Date date) argument
528 formatImpl(Date date, StringBuffer buffer, FieldPosition field, List<FieldPosition> fields) argument
816 format(Date date, StringBuffer buffer, FieldPosition fieldPos) argument
1235 set2DigitYearStart(Date date) argument
[all...]
H A DDateFormat.java30 * An abstract class for date/time formatting subclasses which formats and
31 * parses dates or time in a language-independent manner. The date/time
33 * (i.e., date -> text), parsing (text -> date), and normalization. The date is
37 * DateFormat provides many class methods for obtaining default date/time
47 * To format a date for the current Locale, use one of the static factory
90 * Use {@code getDateInstance} to get the normal date format for a country.
93 * date and time format. You can pass in different options to these factory
133 * representing a date
371 format(Date date) argument
394 format(Date date, StringBuffer buffer, FieldPosition field) argument
[all...]
/libcore/luni/src/test/java/libcore/javax/net/ssl/
H A DDefaultHostnameVerifierTest.java374 @Override public void checkValidity(Date date) { argument
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DTestCertUtils.java477 public void checkValidity(Date date) argument
/libcore/luni/src/test/java/libcore/net/http/
H A DHttpResponseCacheTest.java535 // expires: 10 seconds from served date = 5 seconds from now
553 // expires: 10 seconds from served date = 5 seconds ago
566 // expires: 10 days from served date = 5 days from now
1654 * @param delta the offset from the current date to use. Negative
1662 private String formatDate(Date date) { argument
1665 return rfc1123.format(date);

Completed in 313 milliseconds