/openjdk9/jdk/test/java/beans/XMLEncoder/ |
H A D | java_sql_Date.java | 27 * @summary Tests Date encoding 33 import java.sql.Date; 35 public final class java_sql_Date extends AbstractTest<Date> { 40 protected Date getObject() { 41 return new Date(System.currentTimeMillis()); 44 protected Date getAnotherObject() { 45 return new Date(0L);
|
H A D | java_util_Date.java | 27 * @summary Tests Date encoding 31 import java.util.Date; 33 public final class java_util_Date extends AbstractTest<Date> { 38 protected Date getObject() { 39 return new Date(System.currentTimeMillis()); 42 protected Date getAnotherObject() { 43 return new Date(0L);
|
/openjdk9/jdk/test/java/sql/testng/test/sql/ |
H A D | DateTests.java | 25 import java.sql.Date; 36 * Validate an IllegalArgumentException is thrown for an invalid Date string 41 Date.valueOf(d); 50 Date d1 = Date.valueOf(d); 51 Date d2 = Date.valueOf(expectedD); 57 * Validate that a Date.after() returns false when same date is compared 61 Date d = Date [all...] |
/openjdk9/jdk/src/java.base/share/classes/sun/util/calendar/ |
H A D | Gregorian.java | 39 static class Date extends BaseCalendar.Date { class in class:Gregorian 40 protected Date() { method in class:Gregorian.Date 44 protected Date(TimeZone zone) { method in class:Gregorian.Date 64 public Date getCalendarDate() { 68 public Date getCalendarDate(long millis) { 72 public Date getCalendarDate(long millis, CalendarDate date) { 73 return (Date) super.getCalendarDate(millis, date); 76 public Date getCalendarDate(long millis, TimeZone zone) { 80 public Date newCalendarDat [all...] |
H A D | JulianCalendar.java | 47 private static class Date extends BaseCalendar.Date { class in class:JulianCalendar 48 protected Date() { method in class:JulianCalendar.Date 53 protected Date(TimeZone zone) { method in class:JulianCalendar.Date 58 public Date setEra(Era era) { 121 public Date getCalendarDate() { 125 public Date getCalendarDate(long millis) { 129 public Date getCalendarDate(long millis, CalendarDate date) { 130 return (Date) super.getCalendarDate(millis, date); 133 public Date getCalendarDat [all...] |
/openjdk9/jdk/test/java/util/TimeZone/ |
H A D | TimeZoneDatePermissionCheck.java | 25 import java.util.Date; 31 * trying to get enough permissions for printing Date of failing 38 System.out.println(new Date());
|
H A D | ListTimeZones.java | 35 Date date = new Date();
|
/openjdk9/jdk/test/javax/security/auth/kerberos/ |
H A D | KerberosHashEqualsTest.java | 35 import java.util.Date; 129 t1 = new KerberosTicket("asn1".getBytes(), newKP("client"), newKP("server"), "pass".getBytes(), 1, new boolean[] {true, true}, new Date(0), new Date(0), new Date(0), new Date(0), null); 130 t2 = new KerberosTicket("asn1".getBytes(), newKP("client"), newKP("server"), "pass".getBytes(), 1, new boolean[] {true, true}, new Date(0), new Date(0), new Date(0), new Date(0), null); 133 t2 = new KerberosTicket("asn11".getBytes(), newKP("client"), newKP("server"), "pass".getBytes(), 1, new boolean[] {true, true}, new Date( [all...] |
/openjdk9/langtools/test/tools/javac/ |
H A D | CheckNoClassCastException.java | 47 List<Date> list = new ArrayList<>(); 48 list.add(new Date()); 51 Date date = (Date) cList.get(0); 62 Map<String,Date> aMap = new HashMap<>(); 63 aMap.put("test",new Date()); 66 Date q = (Date) m.get("test");
|
/openjdk9/jdk/test/java/util/Date/ |
H A D | DateRegression.java | 43 Date d1 = new Date(0); 44 Date d2 = new Date(0); 61 errln("Fail: Date hashCode misbehaves"); 69 Date nite = new Date("16-JAN-97 12:00 AM"); 71 Date noon = new Date("16-JAN-97 12:00 PM"); 74 if (!nite.equals(new Date(9 [all...] |
H A D | TZ.java | 26 * @summary java.util.Date doesn't fail if current TimeZone is changed 30 import java.util.Date; 46 // load the java.util.Date class in the GMT timezone 48 new Date(); // load the class (to run static initializers) 53 Date date = new Date(97, 1, 1); 55 throw new RuntimeException("Regression bug id #4108737 - Date fails if default time zone changed");
|
H A D | Bug8135055.java | 28 * @summary Test java.sql.TimeStamp instance should come after java.util.Date 32 import java.util.Date; 38 Date d = new Date();
|
H A D | DateTest.java | 27 * @summary test Date 53 Date d = new Date(); 60 errln("Fail: Date.setHours()/getHours() ignoring default zone"); 70 // Various problems can creep up, with the current implementation of Date, 76 Date d = new Date(); // Trigger static init 77 Date ref = new Date(883634400000L); // This is Thu Jan 1 1998 6:00 am GMT 86 // There are two cases to consider: a Date objec [all...] |
/openjdk9/jdk/test/javax/net/ssl/HttpsURLConnection/ |
H A D | DelayDefaultContextLoading.java | 46 Date date1 = new Date(); 48 Date date2 = new Date();
|
/openjdk9/jdk/src/java.desktop/share/classes/javax/print/attribute/ |
H A D | DateTimeSyntax.java | 31 import java.util.Date; 38 * {@code java.util.Date}. You can get a date-time attribute's Date value by 40 * Date value is established when it is constructed (see {@link 41 * #DateTimeSyntax(Date) DateTimeSyntax(Date)}). Once 46 * object to construct a {@code java.util.Date} object, then use the 47 * {@code java.util.Date} object to construct the date-time attribute. 51 * set it to the {@code java.util.Date} from the date-time attribute. Class 52 * DateTimeSyntax stores its value in the form of a {@code java.util.Date} [all...] |
/openjdk9/jdk/test/java/text/Format/DateFormat/ |
H A D | NonGregorianFormatTest.java | 41 { "GGGG yyyy MMMM d", "Showa 1 December 31", new Date(1926-1900, DECEMBER, 31) }, 42 { "GGGG yyyy MMMM d", "Showa 64 January 6", new Date(1989-1900, JANUARY, 6) }, 43 { "GGGG yyyy MMMM d", "Heisei 1 August 9", new Date(1989-1900, AUGUST, 9) }, 44 { "GGGG yyyy MMMM d", "Heisei 17 June 10", new Date(2005-1900, JUNE, 10) }, 45 { "Gy.MM.dd", "S1.12.31", new Date(1926-1900, DECEMBER, 31) }, 46 { "Gy.MM.dd", "S64.01.06", new Date(1989-1900, JANUARY, 6) }, 47 { "Gyy.MM.dd", "H01.08.09", new Date(1989-1900, AUGUST, 9) }, 48 { "Gy.M.d", "H1.8.9", new Date(1989-1900, AUGUST, 9) }, 49 { "Gy.MM.dd", "H17.06.10", new Date(2005-1900, JUNE, 10) }, 64 { "GGGG yyyy MMMM d", "B.E. 2469 December 31", new Date(192 [all...] |
H A D | Bug6609750.java | 41 Date[] dates = { 42 new Date(9-1900, Calendar.JUNE, 12), 43 new Date(99-1900, Calendar.JUNE, 12), 44 new Date(999-1900, Calendar.JUNE, 12), 45 new Date(2009-1900, Calendar.JUNE, 12), 46 new Date(30009-1900, Calendar.JUNE, 12), 62 Date date = dates[dateNo];
|
/openjdk9/jdk/test/java/rmi/reliability/juicer/ |
H A D | AppleEvent.java | 25 import java.util.Date; 39 private final Date when; 43 this.when = new Date();
|
/openjdk9/jdk/test/sun/rmi/rmic/newrmic/equivalence/ |
H A D | AppleEvent.java | 24 import java.util.Date; 39 private java.util.Date when; 44 this.when = new Date();
|
/openjdk9/jdk/src/java.base/share/classes/java/util/concurrent/locks/ |
H A D | Condition.java | 38 import java.util.Date; 413 * boolean aMethod(Date deadline) { 449 boolean awaitUntil(Date deadline) throws InterruptedException;
|
/openjdk9/jdk/test/sun/security/util/DerOutputStream/ |
H A D | LocaleInTime.java | 32 import java.util.Date; 39 out.putUTCTime(new Date());
|
/openjdk9/jdk/src/java.desktop/share/classes/javax/swing/ |
H A D | SpinnerDateModel.java | 33 * A <code>SpinnerModel</code> for sequences of <code>Date</code>s. 48 * then <code>nextValue</code> produces a <code>Date</code> that's 24 50 * produces a <code>Date</code> that's 24 hours earlier. 92 private Comparable<Date> start, end; 176 public SpinnerDateModel(Date value, Comparable<Date> start, Comparable<Date> end, int calendarField) { 203 this(new Date(), null, null, Calendar.DAY_OF_MONTH); 218 * Typically this property is a <code>Date</code> however it's possible to use 224 * public int compareTo(Date [all...] |
/openjdk9/jdk/test/sun/text/resources/Format/ |
H A D | Bug5096553.java | 36 import java.util.Date; 51 String medString = new String (df1.format(new Date(108, Calendar.APRIL, 30))); 52 String shortString = new String (df2.format(new Date(108, Calendar.APRIL, 30))); 53 System.out.println(df1.format(new Date())); 54 System.out.println(df2.format(new Date()));
|
/openjdk9/jdk/src/java.base/share/classes/java/security/ |
H A D | Timestamp.java | 32 import java.util.Date; 54 private Date timestamp; 75 public Timestamp(Date timestamp, CertPath signerCertPath) { 79 this.timestamp = new Date(timestamp.getTime()); // clone 88 public Date getTimestamp() { 89 return new Date(timestamp.getTime()); // clone 162 timestamp = new Date(timestamp.getTime());
|
/openjdk9/jdk/src/java.base/share/classes/sun/security/x509/ |
H A D | CertificateValidity.java | 30 import java.util.Date; 57 private Date notBefore; 58 private Date notAfter; 61 private Date getNotBefore() { 62 return (new Date(notBefore.getTime())); 66 private Date getNotAfter() { 67 return (new Date(notAfter.getTime())); 115 public CertificateValidity(Date notBefore, Date notAfter) { 177 if (!(obj instanceof Date)) { [all...] |