/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
DateTest.java | 21 import java.util.Date; 27 static class MockDate extends Date{ 44 * @tests java.util.Date#Date() 47 // Test for method java.util.Date() 51 long now = new Date().getTime(); 52 assertTrue("Created incorrect date: " + oldTime + " now: " + now, 57 * @tests java.util.Date#Date(int, int, int) 60 // Test for method java.util.Date(int, int, int 68 Date date = new Date(99, 5, 22); local 110 Date date = new MockDate(1000L); local [all...] |
/libcore/luni/src/test/java/tests/api/java/util/ |
DateTest.java | 21 import java.util.Date; 29 * java.util.Date#Date() 32 // Test for method java.util.Date() 36 long now = new Date().getTime(); 37 assertTrue("Created incorrect date: " + oldTime + " now: " + now, 42 * java.util.Date#Date(int, int, int) 45 // Test for method java.util.Date(int, int, int) 46 Date d1 = new Date(70, 0, 1); // the epoch + local tim 53 Date date = new Date(99, 5, 22); local [all...] |
/external/v8/test/mjsunit/ |
date.js | 28 // Test date construction from other dates. 29 var date0 = new Date(1111); 30 var date1 = new Date(date0); 33 var date2 = new Date(date0.toString()); 37 var date0 = Date.parse("Dec 25 1995 1:30"); 38 var date1 = Date.parse("Dec 25, 1995 1:30"); 39 var date2 = Date.parse("Dec 25 1995, 1:30"); 40 var date3 = Date.parse("Dec 25, 1995, 1:30"); 47 var dMax = new Date(8.64e15); 53 var dOverflow = new Date(8.64e15+1) [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
CertStatus.java | 3 import java.util.Date; 13 Date revocationDate = null; 18 public Date getRevocationDate() 26 public void setRevocationDate(Date revocationDate)
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/ |
DateHelper.java | 18 import java.util.Date; 21 * Converts ISO Dates (seconds since 1/1/1904) to Date and vice versa. 25 * Converts a long value with seconds since 1/1/1904 to Date. 28 * @return date the corresponding <code>Date</code> 30 static public Date convert(long secondsSince) { 31 return new Date((secondsSince - 2082844800L) * 1000L); 36 * Converts a date as long to a mac date as long 38 * @param date date to conver [all...] |
TrackMetaData.java | 18 import java.util.Date; 26 private Date modificationTime = new Date(); 27 private Date creationTime = new Date(); 59 public Date getModificationTime() { 63 public void setModificationTime(Date modificationTime) { 67 public Date getCreationTime() { 71 public void setCreationTime(Date creationTime) {
|
/external/chromium_org/v8/test/mjsunit/ |
date.js | 30 // Test date construction from other dates. 31 var date0 = new Date(1111); 32 var date1 = new Date(date0); 35 var date2 = new Date(date0.toString()); 39 var date0 = Date.parse("Dec 25 1995 1:30"); 40 var date1 = Date.parse("Dec 25, 1995 1:30"); 41 var date2 = Date.parse("Dec 25 1995, 1:30"); 42 var date3 = Date.parse("Dec 25, 1995, 1:30"); 49 var dMax = new Date(8.64e15); 55 var dOverflow = new Date(8.64e15+1) [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
ASN1GeneralizedTime.java | 3 import java.util.Date; 13 public ASN1GeneralizedTime(Date time)
|
ASN1UTCTime.java | 3 import java.util.Date; 13 public ASN1UTCTime(Date time)
|
/external/chromium_org/third_party/WebKit/Source/modules/filesystem/ |
Metadata.idl | 34 readonly attribute Date modificationTime;
|
/external/smack/src/org/jivesoftware/smackx/workgroup/ |
QueueUser.java | 3 * $Date$
22 import java.util.Date;
37 private Date joinDate;
45 public QueueUser (String uid, int position, int time, Date joinedAt) {
81 public Date getQueueJoinTimestamp () {
|
/external/apache-http/src/org/apache/http/cookie/ |
Cookie.java | 4 * $Date: 2007-09-22 03:56:04 -0700 (Sat, 22 Sep 2007) $ 34 import java.util.Date; 76 * Returns the expiration {@link Date} of the cookie, or <tt>null</tt> 81 * @return Expiration {@link Date}, or <tt>null</tt>. 83 Date getExpiryDate(); 132 * @param date Current time 136 boolean isExpired(final Date date);
|
SetCookie.java | 4 * $Date: 2008-01-31 11:26:47 -0800 (Thu, 31 Jan 2008) $ 34 import java.util.Date; 59 * Sets expiration date. 64 * @param expiryDate the {@link Date} after which this cookie is no longer valid. 69 void setExpiryDate (Date expiryDate);
|
/external/chromium_org/v8/test/webkit/ |
date-constructor.js | 25 'This test case tests the Date constructor. ' + 26 'In particular, it tests many cases of creating a Date from another Date ' + 27 'and creating a Date from an object that has both valueOf and toString functions.' 34 shouldBe('isNaN(new Date(""))', 'true'); 36 var timeZoneOffset = Date.parse("Dec 25 1995") - Date.parse("Dec 25 1995 GMT"); 38 shouldBe('new Date(1111).getTime()', '1111'); 39 shouldBe('new Date(object).getTime()', '1111'); 40 shouldBe('new Date(new Date(1111)).getTime()', '1111') [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/x509/ |
PrivateKeyUsagePeriodTest.java | 24 import java.util.Date; 34 Date notBeforeDate = new Date(200000000); 35 Date notAfterDate = new Date(300000000);
|
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
PrivateKeyUsagePeriod.java | 25 import java.util.Date; 49 private final Date notBeforeDate; 51 private final Date notAfterDate; 55 public PrivateKeyUsagePeriod(Date notBeforeDate, Date notAfterDate) { 59 private PrivateKeyUsagePeriod(Date notBeforeDate, Date notAfterDate, byte[] encoding) { 68 public Date getNotBefore() { 75 public Date getNotAfter() { 102 return new PrivateKeyUsagePeriod((Date) values[0], (Date) values[1], in.getEncoded()) [all...] |
Validity.java | 25 import java.util.Date; 47 private final Date notBefore; 49 private final Date notAfter; 53 public Validity(Date notBefore, Date notAfter) { 61 public Date getNotBefore() { 68 public Date getNotAfter() { 90 return new Validity((Date) values[0], (Date) values[1]);
|
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9/ |
date-format-xparb.js | 14 Date.parseFunctions = {count:0}; 15 Date.parseRegexes = []; 16 Date.formatFunctions = {count:0}; 18 Date.prototype.dateFormat = function(format) { 19 if (Date.formatFunctions[format] == null) { 20 Date.createNewFormat(format); 22 var func = Date.formatFunctions[format]; 26 Date.createNewFormat = function(format) { 27 var funcName = "format" + Date.formatFunctions.count++; 28 Date.formatFunctions[format] = funcName [all...] |
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/ |
date-format-xparb.js | 14 Date.parseFunctions = {count:0}; 15 Date.parseRegexes = []; 16 Date.formatFunctions = {count:0}; 18 Date.prototype.dateFormat = function(format) { 19 if (Date.formatFunctions[format] == null) { 20 Date.createNewFormat(format); 22 var func = Date.formatFunctions[format]; 26 Date.createNewFormat = function(format) { 27 var funcName = "format" + Date.formatFunctions.count++; 28 Date.formatFunctions[format] = funcName [all...] |
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-1.0/ |
date-format-xparb.js | 14 Date.parseFunctions = {count:0}; 15 Date.parseRegexes = []; 16 Date.formatFunctions = {count:0}; 18 Date.prototype.dateFormat = function(format) { 19 if (Date.formatFunctions[format] == null) { 20 Date.createNewFormat(format); 22 var func = Date.formatFunctions[format]; 26 Date.createNewFormat = function(format) { 27 var funcName = "format" + Date.formatFunctions.count++; 28 Date.formatFunctions[format] = funcName [all...] |
/external/jmonkeyengine/engine/src/networking/com/jme3/network/serializing/serializers/ |
DateSerializer.java | 38 import java.util.Date; 41 * Date serializer. 48 public Date readObject(ByteBuffer data, Class c) throws IOException { 49 return new Date(data.getLong()); 53 buffer.putLong(((Date)object).getTime());
|
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
DateTest.java | 20 import java.sql.Date; 27 * JUnit Testcase for the java.sql.Date class 56 // Date strings 72 // Date string array for London (GMT) 76 // Date string array for New York - sometimes a day earlier than London 80 // Date string for Tokyo 97 * Helper method to create a long milliseconds time from a supplied date and 100 static private long getTime(int year, int month, int date, int hour, 102 aCal.set(year, month, date, hour, minute, second); 107 * Test of the Date(int, int, int) constructor - now deprecated but stil [all...] |
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeyUtils.java | 26 private static final java.util.Date DATE = new java.util.Date(); 37 DATE.setTime(time); 38 return DATE_FORMATTER.format(DATE);
|
/development/samples/MySampleRss/src/com/example/codelab/rssexample/ |
RssItem.java | 19 import java.util.Date; 27 public Date lastUpdated;
|
/external/apache-http/src/org/apache/http/client/ |
CookieStore.java | 4 * $Date: 2007-12-15 06:45:48 -0800 (Sat, 15 Dec 2007) $ 33 import java.util.Date; 65 * the specified {@link java.util.Date date}. 69 boolean clearExpired(Date date);
|