HomeSort by relevance Sort by last modified time
    Searched refs:SimpleDateFormat (Results 1 - 25 of 135) sorted by null

1 2 3 4 5 6

  /development/cmds/monkey/src/com/android/commands/monkey/
MonkeyUtils.java 19 import java.text.SimpleDateFormat;
27 private static final SimpleDateFormat DATE_FORMATTER = new SimpleDateFormat(
  /packages/apps/Contacts/src/com/android/contacts/util/
DateUtils.java 23 import java.text.SimpleDateFormat;
35 public static final SimpleDateFormat NO_YEAR_DATE_FORMAT =
36 new SimpleDateFormat("--MM-dd", Locale.US);
37 public static final SimpleDateFormat FULL_DATE_FORMAT =
38 new SimpleDateFormat("yyyy-MM-dd", Locale.US);
39 public static final SimpleDateFormat DATE_AND_TIME_FORMAT =
40 new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US);
44 private static final SimpleDateFormat[] DATE_FORMATS = {
47 new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'", Locale.US),
48 new SimpleDateFormat("yyyyMMdd", Locale.US)
    [all...]
  /cts/tools/tradefed-host/src/com/android/cts/tradefed/result/
TimeUtil.java 18 import java.text.SimpleDateFormat;
67 SimpleDateFormat dateFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy");
77 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy.MM.dd_HH.mm.ss");
  /external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
DateFormatTest.java 23 import java.text.SimpleDateFormat;
75 SimpleDateFormat f2 = (SimpleDateFormat) DateFormat.getDateInstance();
76 assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class);
92 SimpleDateFormat f2 = (SimpleDateFormat) DateFormat
94 assertTrue("Wrong class1", f2.getClass() == SimpleDateFormat.class);
102 f2 = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.MEDIUM);
103 assertTrue("Wrong class2", f2.getClass() == SimpleDateFormat.class);
111 f2 = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.LONG)
    [all...]
SimpleDateFormatTest.java 24 import java.text.SimpleDateFormat;
35 static SimpleDateFormat format = new SimpleDateFormat("", Locale.ENGLISH);
37 static SimpleDateFormat pFormat = new SimpleDateFormat("", Locale.ENGLISH);
107 * @tests java.text.SimpleDateFormat#SimpleDateFormat()
110 // Test for method java.text.SimpleDateFormat()
111 SimpleDateFormat f2 = new SimpleDateFormat();
    [all...]
  /external/apache-http/src/org/apache/http/impl/cookie/
DateUtils.java 36 import java.text.SimpleDateFormat;
157 SimpleDateFormat dateParser = DateFormatHolder.formatFor(dateFormat);
185 * must conform to that used by the {@link SimpleDateFormat simple date
194 * @see SimpleDateFormat
200 SimpleDateFormat formatter = DateFormatHolder.formatFor(pattern);
209 * A factory for {@link SimpleDateFormat}s. The instances are stored in a
210 * threadlocal way because SimpleDateFormat is not threadsafe as noted in
211 * {@link SimpleDateFormat its javadoc}.
217 private static final ThreadLocal<SoftReference<Map<String, SimpleDateFormat>>>
218 THREADLOCAL_FORMATS = new ThreadLocal<SoftReference<Map<String, SimpleDateFormat>>>() {
    [all...]
  /libcore/luni/src/test/java/libcore/java/text/
SimpleDateFormatTest.java 21 import java.text.SimpleDateFormat;
36 SimpleDateFormat sdf = new SimpleDateFormat();
80 SimpleDateFormat format = new SimpleDateFormat("EEE MMM dd HH:mm:ss yyyy");
95 DateFormat dateFormat = new SimpleDateFormat(fmt, l);
101 SimpleDateFormat sdf = new SimpleDateFormat(fmt, l);
127 SimpleDateFormat sdf = new SimpleDateFormat(fmt, Locale.US)
    [all...]
OldSimpleDateFormatTest.java 23 import java.text.SimpleDateFormat;
33 SimpleDateFormat format = new SimpleDateFormat("", Locale.ENGLISH);
35 SimpleDateFormat pFormat = new SimpleDateFormat("", Locale.ENGLISH);
79 * java.text.SimpleDateFormat#SimpleDateFormat(java.lang.String,
83 // Test for method java.text.SimpleDateFormat(java.lang.String,
87 SimpleDateFormat f2 = new SimpleDateFormat("y'y'yy", symbols)
    [all...]
  /libcore/luni/src/main/java/libcore/net/http/
HttpDate.java 21 import java.text.SimpleDateFormat;
38 DateFormat rfc1123 = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US);
78 return new SimpleDateFormat(formatString, Locale.US).parse(value);
  /libcore/luni/src/main/java/org/apache/harmony/security/asn1/
ASN1UTCTime.java 27 import java.text.SimpleDateFormat;
97 SimpleDateFormat sdf = new SimpleDateFormat(UTC_PATTERN);
ASN1GeneralizedTime.java 27 import java.text.SimpleDateFormat;
86 SimpleDateFormat sdf = new SimpleDateFormat(GEN_PATTERN);
  /external/icu4c/i18n/unicode/
smpdtfmt.h 47 * SimpleDateFormat is a concrete class for formatting and parsing dates in a
54 * explicitly constructing an instance of SimpleDateFormat. This way, the client
57 * the default patterns in the locales, he can construct a SimpleDateFormat directly
149 * SimpleDateFormat* formatter
150 * = new SimpleDateFormat ("yyyy.MM.dd G 'at' hh:mm:ss a zzz", success );
171 * SimpleDateFormat must interpret the abbreviated year
173 * within 80 years before and 20 years after the time the SimpleDateFormat
175 * SimpleDateFormat instance created on Jan 1, 1997, the string
203 * For time zones that have no names, SimpleDateFormat uses strings GMT+hours:minutes or
215 class U_I18N_API SimpleDateFormat: public DateFormat
    [all...]
  /external/bouncycastle/src/main/java/org/bouncycastle/asn1/
DERUTCTime.java 5 import java.text.SimpleDateFormat;
88 SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmss'Z'");
121 SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmssz");
136 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmssz");
150 * dateF = new SimpleDateFormat("yyMMddHHmmssz");
DERGeneralizedTime.java 5 import java.text.SimpleDateFormat;
88 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmss'Z'");
127 * dateF = new SimpleDateFormat("yyyyMMddHHmmssz");
210 SimpleDateFormat dateF;
217 dateF = new SimpleDateFormat("yyyyMMddHHmmss.SSS'Z'");
221 dateF = new SimpleDateFormat("yyyyMMddHHmmss'Z'");
231 dateF = new SimpleDateFormat("yyyyMMddHHmmss.SSSz");
235 dateF = new SimpleDateFormat("yyyyMMddHHmmssz");
244 dateF = new SimpleDateFormat("yyyyMMddHHmmss.SSS")
    [all...]
  /external/apache-http/src/org/apache/http/protocol/
HttpDateGenerator.java 35 import java.text.SimpleDateFormat;
67 this.dateformat = new SimpleDateFormat(PATTERN_RFC1123, Locale.US);
  /packages/apps/DeskClock/src/com/android/deskclock/
Log.java 25 import java.text.SimpleDateFormat;
54 return new SimpleDateFormat("HH:mm:ss.SSS aaa").format(new Date(millis));
  /external/icu4c/test/intltest/
dtfmttst.h 19 * Performs many different tests for DateFormat and SimpleDateFormat
65 virtual void tryPat994(SimpleDateFormat* format, const char* pat, const char* str, UDate expected);
81 virtual void testIt917(SimpleDateFormat* fmt, UnicodeString& str, UDate expected);
100 virtual void tryPattern(SimpleDateFormat& sdf, UDate d, const char* pattern, UDate expected);
sdtfmtts.cpp 25 case 0: name = "SimpleDateFormat API test";
27 logln("SimpleDateFormat API test---"); logln("");
44 * Test various generic API methods of SimpleDateFormat for API coverage.
52 logln("Testing SimpleDateFormat constructors");
54 SimpleDateFormat def(status);
56 dataerrln("ERROR: Could not create SimpleDateFormat (default) - exitting");
65 SimpleDateFormat pat(pattern, status);
67 errln("ERROR: Could not create SimpleDateFormat (pattern) - %s", u_errorName(status));
71 SimpleDateFormat pat_fr(pattern, Locale::getFrench(), status);
73 errln("ERROR: Could not create SimpleDateFormat (pattern French)")
    [all...]
miscdtfm.cpp 114 SimpleDateFormat *formatter;
115 SimpleDateFormat *resultFormatter = new SimpleDateFormat((UnicodeString)"yyyy", status);
117 dataerrln("Fail new SimpleDateFormat: %s", u_errorName(status));
126 formatter = new SimpleDateFormat(dformat[i], status);
127 if(failure(status, "new SimpleDateFormat")) return;
153 * Test Constructor SimpleDateFormat::SimpleDateFormat (const UnicodeString & pattern,
156 * should not change the SimpleDateFormat's behavior.
163 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("E hh:mm"), *symbols, status)
    [all...]
dtfmrgts.h 30 void aux917( SimpleDateFormat *fmt, UnicodeString& str );
  /packages/apps/Camera/src/com/android/camera/panorama/
PanoUtil.java 19 import java.text.SimpleDateFormat;
25 SimpleDateFormat dateFormat = new SimpleDateFormat(format);
  /packages/apps/Contacts/src/com/android/contacts/model/
DataKind.java 27 import java.text.SimpleDateFormat;
76 public SimpleDateFormat dateFormatWithoutYear;
83 public SimpleDateFormat dateFormatWithYear;
  /external/bouncycastle/src/main/java/org/bouncycastle/asn1/x509/
Time.java 11 import java.text.SimpleDateFormat;
49 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmss");
  /packages/apps/Email/src/com/android/email/mail/store/imap/
ImapString.java 26 import java.text.SimpleDateFormat;
62 private final static SimpleDateFormat DATE_TIME_FORMAT =
63 new SimpleDateFormat("dd-MMM-yyyy HH:mm:ss Z", Locale.US);
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/
DerUTCTimeEDTest.java 27 import java.text.SimpleDateFormat;
62 SimpleDateFormat sdf =
63 new SimpleDateFormat("dd.MM.yyyy HH:mm");
108 myDate = new SimpleDateFormat("MM.dd.yyyy HH:mm").

Completed in 762 milliseconds

1 2 3 4 5 6