/external/v8/test/mjsunit/regress/ |
regress-396.js | 30 function DateYear(date) { 31 var string = date.getYear() + ''; 38 assertEquals('1995', DateYear(new Date('Dec 25, 1995'))); 39 assertEquals('2005', DateYear(new Date('Dec 25, 2005')));
|
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
ObjectViewer.java | 39 import java.util.Date; 142 Date date = new Date(info.getDateCreated() * 1000); local 143 view.setText(date.toString()); 145 date = new Date(info.getDateModified() * 1000); 146 view.setText(date.toString());
|
/libcore/luni/src/main/java/java/sql/ |
SQLInput.java | 153 * java.sql.Date}. 155 * @return the next attribute as a {@code java.sql.Date}. {@code null} if 159 * @see Date 161 public Date readDate() throws SQLException;
|
SQLOutput.java | 144 * Write a {@code java.sql.Date} value into the output stream. 147 * the {@code Date} value to write. 150 * @see Date 152 public void writeDate(Date theDate) throws SQLException;
|
Timestamp.java | 22 import java.util.Date; 29 * addition to the regular date/time value which has millisecond resolution. 31 * The {@code Timestamp} class consists of a regular date/time value, where only 36 * makes it significantly different from the {@code java.util.Date} object which 38 * interchangable with {@code java.util.Date} objects when used outside the 41 * @see Date 43 * @see java.util.Date 45 public class Timestamp extends Date { 57 * supplied values for <i>Year</i>, <i>Month</i>, <i>Date</i>, <i>Hour</i>, 196 public int compareTo(Date theObject) throws ClassCastException [all...] |
ResultSet.java | 550 * java.sql.Date}. 554 * @return a {@code java.sql.Date} matching the column value. {@code null} 559 public Date getDate(int columnIndex) throws SQLException; 563 * java.sql.Date}. This method uses a supplied calendar to compute the Date. 568 * a {@code java.util.Calendar} to use in constructing the Date. 569 * @return a {@code java.sql.Date} matching the column value. {@code null} 574 public Date getDate(int columnIndex, Calendar cal) throws SQLException; 578 * java.sql.Date}. 582 * @return a {@code java.sql.Date} matching the column value. {@code null [all...] |
/libcore/luni/src/main/java/java/text/ |
SimpleDateFormat.java | 26 import java.util.Date; 36 * Formats and parses dates in a locale-sensitive manner. Formatting turns a {@link Date} into 37 * a {@link String}, and parsing turns a {@code String} into a {@code Date}. 54 * to the ISO 8601 international standard date format. 90 * <tr> <td>{@code '}</td> <td>escape for text</td> <td>(Delimiter)</td> <td>{@code 'Date='}:Date=</td> </tr> 101 * form (because the usual case is to format a complete date). The relationship between {@code E} 130 * System.out.println(df.format(new Date(0))); 153 * System.out.format("%30s %s\n", format, sdf.format(new Date(0))); 155 * System.out.format("%30s %s\n", format, sdf.format(new Date(0))) 1066 Date date; local 1343 Date date; local [all...] |
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/ |
DownloadAdapter.java | 38 import java.util.Date; 125 Date date = new Date(mCursor.getLong(mDateColumnId)); local 126 if (date.before(getStartOfToday())) { 127 return mDateFormat.format(date); 129 return mTimeFormat.format(date); 133 private Date getStartOfToday() {
|
/external/smack/src/org/jivesoftware/smack/util/ |
StringUtils.java | 4 * $Date$ 33 import java.util.Date; 46 * Date format as defined in XEP-0082 - XMPP Date and Time Profiles. The time zone is set to 49 * Date formats are not synchronized. Since multiple threads access the format concurrently, it 51 * {@link #parseXEP0082Date(String)} and {@link #formatXEP0082Date(Date)}. 119 * Parses the given date string in the <a href="http://xmpp.org/extensions/xep-0082.html">XEP-0082 - XMPP Date and Time Profiles</a>. 121 * @param dateString the date string to parse 122 * @return the parsed Date 151 Date date = handleDateWithMissingLeadingZeros(dateString, length); local [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/cert/ |
X509CertImplTest.java | 38 import java.util.Date; 272 new Validity(new Date(notBefore), new Date(notAfter)); 335 * checkValidity(Date date) method testing. 339 certificate.checkValidity(new Date(3000000000L)); 346 certificate.checkValidity(new Date(100000000L)); 353 certificate.checkValidity(new Date(1000000000L)); 354 certificate.checkValidity(new Date(1500000000L)); 355 certificate.checkValidity(new Date(2000000000L)) [all...] |
X509CertFactoryPerfTest.java | 246 new Validity(new Date(notBefore), new Date(notAfter)); 425 * checkValidity(Date date) method testing. 429 certificate.checkValidity(new Date(3000000000L)); 436 certificate.checkValidity(new Date(100000000L)); 443 certificate.checkValidity(new Date(1000000000L)); 444 certificate.checkValidity(new Date(1500000000L)); 445 certificate.checkValidity(new Date(2000000000L)); 509 assertEquals("Incorrect notBefore date", [all...] |
/external/chromium_org/chrome/browser/resources/sync_internals/ |
data.js | 9 // TODO(akalin): Add info like Chrome version, OS, date dumped, etc. 54 var epochLength = Date.now().toString().length; 56 var date = new Date(epochTime); 57 return date.toString(); 98 var now = new Date(); 104 Date.now(), 110 var now = new Date(); 117 // Prepend a header with ISO date and useragent.
|
/libcore/luni/src/test/java/libcore/java/text/ |
OldSimpleDateFormatTest.java | 25 import java.util.Date; 66 public void parse(String pattern, String input, Date expected, int start, int end) { 69 Date result = pFormat.parse(input, position); 78 String expected2, Date date) { 82 format.format(date)); 86 format.format(date)); 104 f2.format(new Date()).getClass() == String.class); 131 f2.format(new Date()).getClass() == String.class); 222 format.format(new Date()); [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
BluetoothMapAppParams.java | 23 import java.util.Date; 559 Date date = new Date(filterPeriodBegin); local 560 return format.format(date); // Format to YYYYMMDDTHHMMSS local time 569 Date date = format.parse(filterPeriodBegin); local 570 this.filterPeriodBegin = date.getTime(); 579 Date date = new Date(filterPeriodEnd) local 589 Date date = format.parse(filterPeriodEnd); local 785 Date date = new Date(getMseTime()); local 795 Date date = format.parse(mseTime); local [all...] |
/libcore/luni/src/main/java/javax/sql/ |
RowSet.java | 27 import java.sql.Date; 831 * with the value of a supplied {@code java.sql.Date}. 837 * the date value to which the parameter is set [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/ |
WorldClockAdapter.java | 38 import java.util.Date; 123 final Date now = new Date(); 137 final Date now = new Date();
|
/external/chromium/chrome/browser/resources/net_internals/ |
testview.js | 42 (new Date()).toLocaleString()); 78 startTime: (new Date()).getTime() 106 var endTime = (new Date()).getTime();
|
/external/chromium_org/v8/test/webkit/ |
date-set-to-nan.js | 25 "This tests if the Date setters handle invalid parameters correctly resulting in a NaN date and if a recovery from such a NaN date is only possible by using the date.setTime() and date.set[[UTC]Full]Year() functions." 38 "Date", 75 var date = new Date(); 76 var setValue = date["get" + functionNameRoot](); 77 date.setMilliseconds(Number.NaN) [all...] |
/libcore/luni/src/main/java/java/security/cert/ |
X509CertSelector.java | 27 import java.util.Date; 59 private Date certificateValid; 61 private Date privateKeyValid; 399 * Sets the criterion for the validity date of the certificate. 401 * The certificate must be valid at the specified date. 403 * the validity date or {@code null} to not check the date. 405 public void setCertificateValid(Date certificateValid) { 408 : (Date) certificateValid.clone(); 412 * Returns the criterion for the validity date of the certificate [all...] |
/art/test/092-locale/src/ |
Main.java | 23 import java.util.Date; 70 usaCal.clear(); // don't want current date/time 73 Date when = usaCal.getTime();
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
TestResultsReport.java | 32 import java.util.Date; 92 xml.attribute(null, "creation-time", DATE_FORMAT.format(new Date()));
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
XmlReport.java | 25 import java.util.Date; 41 String date = format.format(new Date(System.currentTimeMillis())); local 42 out.println("<api-coverage generatedTime=\"" + date + "\" title=\"" + reportTitle +"\">");
|
/cts/tools/signature-tools/src/signature/io/html/ |
HtmlDeltaExternalizer.java | 35 import java.util.Date; 61 .format(new Date()));
|
/dalvik/tests/092-locale/src/ |
Main.java | 23 import java.util.Date; 70 usaCal.clear(); // don't want current date/time 73 Date when = usaCal.getTime();
|
/development/samples/training/threadsample/src/com/example/android/threadsample/ |
RSSPullService.java | 32 import java.util.Date; 71 // Creates a projection to use in querying the modification date table in the provider. 126 * Tests to see if the table contains a modification date for the URL 130 // Find the URL's last modified date in the content provider 138 * If the modified date isn't 0, sets another request property to ensure that 140 * modification date. Formats the date according to the RFC1123 format. 146 new Date(storedModifiedDate), 156 * No modification date was found for the URL, so newmetadata has to be 212 // Creates another ContentValues for storing date informatio [all...] |