/packages/apps/Contacts/src/com/android/contacts/util/ |
CommonDateUtils.java | 19 import java.text.SimpleDateFormat; 28 public static final SimpleDateFormat NO_YEAR_DATE_FORMAT = 29 new SimpleDateFormat("--MM-dd", Locale.US); 30 public static final SimpleDateFormat FULL_DATE_FORMAT = 31 new SimpleDateFormat("yyyy-MM-dd", Locale.US); 32 public static final SimpleDateFormat DATE_AND_TIME_FORMAT = 33 new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US); 34 public static final SimpleDateFormat NO_YEAR_DATE_AND_TIME_FORMAT = 35 new SimpleDateFormat("--MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US);
|
/packages/apps/Dialer/java/com/android/contacts/common/util/ |
CommonDateUtils.java | 19 import java.text.SimpleDateFormat; 26 public static final SimpleDateFormat NO_YEAR_DATE_FORMAT = 27 new SimpleDateFormat("--MM-dd", Locale.US); 28 public static final SimpleDateFormat FULL_DATE_FORMAT = 29 new SimpleDateFormat("yyyy-MM-dd", Locale.US); 30 public static final SimpleDateFormat DATE_AND_TIME_FORMAT = 31 new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US); 32 public static final SimpleDateFormat NO_YEAR_DATE_AND_TIME_FORMAT = 33 new SimpleDateFormat("--MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US);
|
/libcore/benchmarks/src/benchmarks/regression/ |
SimpleDateFormatBenchmark.java | 22 import java.text.SimpleDateFormat; 29 * Benchmark for java.text.SimpleDateFormat. This tests common formatting, parsing and creation 35 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd z"); 40 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd z"); 47 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd zzzz"); 54 SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd") [all...] |
DateToStringBenchmark.java | 21 import java.text.SimpleDateFormat; 29 SimpleDateFormat format; 36 format = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy"); 47 new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy").format(date); 53 ((SimpleDateFormat) format.clone()).format(date);
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/ |
SimpleDateFormatTest.java | 19 import com.ibm.icu.text.SimpleDateFormat; 42 * Test method for 'com.ibm.icu.text.SimpleDateFormat.format(Calendar, StringBuffer, FieldPosition)' 47 SimpleDateFormat sdf = new SimpleDateFormat(hmzmdy); 53 * Test method for 'com.ibm.icu.text.SimpleDateFormat.parse(String, Calendar, ParsePosition)' 59 SimpleDateFormat sdf = new SimpleDateFormat(hmzmdy); 66 * Test method for 'com.ibm.icu.text.SimpleDateFormat.clone()' 73 * Test method for 'com.ibm.icu.text.SimpleDateFormat.SimpleDateFormat()' [all...] |
/external/jcommander/src/main/java/com/beust/jcommander/converters/ |
ISO8601DateConverter.java | 24 import java.text.SimpleDateFormat; 35 private final static SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd");
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
DateFormatTest.java | 23 import java.text.SimpleDateFormat; 75 SimpleDateFormat f2 = (SimpleDateFormat) DateFormat.getDateInstance(); 76 assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class); 91 SimpleDateFormat f2 = (SimpleDateFormat) DateFormat 93 assertTrue("Wrong class1", f2.getClass() == SimpleDateFormat.class); 101 f2 = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.MEDIUM); 102 assertTrue("Wrong class2", f2.getClass() == SimpleDateFormat.class); 110 f2 = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.LONG) [all...] |
SimpleDateFormatTest.java | 24 import java.text.SimpleDateFormat; 47 // Test for method java.text.SimpleDateFormat() 48 SimpleDateFormat f2 = new SimpleDateFormat(); 49 assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class); 57 // Test for method java.text.SimpleDateFormat(java.lang.String) 58 SimpleDateFormat f2 = new SimpleDateFormat("yyyy"); 59 assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class); 61 assertTrue("Wrong locale", f2.equals(new SimpleDateFormat("yyyy", Locale.getDefault()))) [all...] |
/external/apache-http/src/org/apache/http/impl/cookie/ |
DateUtils.java | 36 import java.text.SimpleDateFormat; 162 SimpleDateFormat dateParser = DateFormatHolder.formatFor(dateFormat); 190 * must conform to that used by the {@link SimpleDateFormat simple date 199 * @see SimpleDateFormat 205 SimpleDateFormat formatter = DateFormatHolder.formatFor(pattern); 214 * A factory for {@link SimpleDateFormat}s. The instances are stored in a 215 * threadlocal way because SimpleDateFormat is not threadsafe as noted in 216 * {@link SimpleDateFormat its javadoc}. 222 private static final ThreadLocal<SoftReference<Map<String, SimpleDateFormat>>> 223 THREADLOCAL_FORMATS = new ThreadLocal<SoftReference<Map<String, SimpleDateFormat>>>() { [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
DateFormatMiscTests.java | 29 import android.icu.text.SimpleDateFormat; 33 * Performs miscellaneous tests for DateFormat, SimpleDateFormat, DateFormatSymbols 55 SimpleDateFormat formatter; 56 SimpleDateFormat resultFormatter = new SimpleDateFormat("yyyy"); 61 formatter = new SimpleDateFormat(dformat[i]); 75 * SimpleDateFormat constructor SimpleDateFormat(String, DateFormatSymbols) 81 //test SimpleDateFormat Constructor 84 SimpleDateFormat df = new SimpleDateFormat("E hh:mm", symbols) [all...] |
DateFormatRegressionTestJ.java | 30 import android.icu.text.SimpleDateFormat; 41 private SimpleDateFormat sdf_; 45 sdf_ = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); 67 // Missing digit in millisecond format in SimpleDateFormat 76 SimpleDateFormat aSimpleDF = (SimpleDateFormat)DateFormat.getDateTimeInstance(); 165 SimpleDateFormat aSimpleDF = (SimpleDateFormat) DateFormat.getDateTimeInstance(); 179 SimpleDateFormat fmt = new SimpleDateFormat(dateFormat) [all...] |
IntlTestSimpleDateFormatAPI.java | 36 import android.icu.text.SimpleDateFormat; 51 logln("SimpleDateFormat API test---"); logln(""); 57 logln("Testing SimpleDateFormat constructors"); 59 SimpleDateFormat def = new SimpleDateFormat(); 62 SimpleDateFormat pat = new SimpleDateFormat(pattern); 64 SimpleDateFormat pat_fr = new SimpleDateFormat(pattern, Locale.FRENCH); 68 SimpleDateFormat cust1 = new SimpleDateFormat(pattern, symbols) [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
DateFormatMiscTests.java | 28 import com.ibm.icu.text.SimpleDateFormat; 31 * Performs miscellaneous tests for DateFormat, SimpleDateFormat, DateFormatSymbols 52 SimpleDateFormat formatter; 53 SimpleDateFormat resultFormatter = new SimpleDateFormat("yyyy"); 58 formatter = new SimpleDateFormat(dformat[i]); 72 * SimpleDateFormat constructor SimpleDateFormat(String, DateFormatSymbols) 78 //test SimpleDateFormat Constructor 81 SimpleDateFormat df = new SimpleDateFormat("E hh:mm", symbols) [all...] |
IntlTestSimpleDateFormatAPI.java | 35 import com.ibm.icu.text.SimpleDateFormat; 48 logln("SimpleDateFormat API test---"); logln(""); 54 logln("Testing SimpleDateFormat constructors"); 56 SimpleDateFormat def = new SimpleDateFormat(); 59 SimpleDateFormat pat = new SimpleDateFormat(pattern); 61 SimpleDateFormat pat_fr = new SimpleDateFormat(pattern, Locale.FRENCH); 65 SimpleDateFormat cust1 = new SimpleDateFormat(pattern, symbols) [all...] |
DateFormatRegressionTestJ.java | 29 import com.ibm.icu.text.SimpleDateFormat; 38 private SimpleDateFormat sdf_; 42 sdf_ = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); 64 // Missing digit in millisecond format in SimpleDateFormat 73 SimpleDateFormat aSimpleDF = (SimpleDateFormat)DateFormat.getDateTimeInstance(); 162 SimpleDateFormat aSimpleDF = (SimpleDateFormat) DateFormat.getDateTimeInstance(); 176 SimpleDateFormat fmt = new SimpleDateFormat(dateFormat) [all...] |
/tools/tradefederation/core/src/com/android/tradefed/util/ |
TimeUtil.java | 18 import java.text.SimpleDateFormat; 71 private static String formatTimeStamp(long epochTime, SimpleDateFormat format) { 73 format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 86 SimpleDateFormat timeFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowDateFormat.java | 14 return new java.text.SimpleDateFormat("MMM-dd-yyyy", Locale.getDefault()); 19 return new java.text.SimpleDateFormat("MMMM dd, yyyy", Locale.getDefault()); 24 return new java.text.SimpleDateFormat("HH:mm:ss", Locale.getDefault());
|
/frameworks/base/cmds/uiautomator/cmds/uiautomator/src/com/android/commands/uiautomator/ |
EventsCommand.java | 25 import java.text.SimpleDateFormat; 59 SimpleDateFormat formatter = new SimpleDateFormat("MM-dd HH:mm:ss.SSS");
|
/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);
|
/external/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/ |
DateFormatPerformanceTest.java | 25 private com.ibm.icu.text.SimpleDateFormat[] icuDateFormat; 27 private java.text.SimpleDateFormat[] jdkDateFormat; 44 icuDateFormat = new com.ibm.icu.text.SimpleDateFormat[threads]; 45 jdkDateFormat = new java.text.SimpleDateFormat[threads]; 47 icuDateFormat[i] = new com.ibm.icu.text.SimpleDateFormat(pattern, locale); 48 jdkDateFormat[i] = new java.text.SimpleDateFormat(pattern, locale); 65 new com.ibm.icu.text.SimpleDateFormat(pattern, locale); 73 new java.text.SimpleDateFormat(pattern, locale);
|
/libcore/luni/src/test/java/libcore/java/text/ |
SimpleDateFormatTest.java | 23 import java.text.SimpleDateFormat; 61 SimpleDateFormat sdf = new SimpleDateFormat(); 70 SimpleDateFormat sdf = new SimpleDateFormat(); 200 SimpleDateFormat format = new SimpleDateFormat("EEE MMM dd HH:mm:ss yyyy", Locale.US); 220 DateFormat dateFormat = new SimpleDateFormat(fmt, l); 226 SimpleDateFormat sdf = new SimpleDateFormat(fmt, l) [all...] |
/external/testng/src/main/java/org/testng/ |
TimeBombSkipException.java | 7 import java.text.SimpleDateFormat; 15 * By default the time format is yyyy/MM/dd (according to {@code SimpleDateFormat}). 17 * formats are according to the {@code SimpleDateFormat}. 24 private static final SimpleDateFormat SDF= new SimpleDateFormat("yyyy/MM/dd"); 49 m_inFormat= new SimpleDateFormat(format); 50 m_outFormat= new SimpleDateFormat(format); 88 m_inFormat= new SimpleDateFormat(inFormat); 89 m_outFormat= new SimpleDateFormat(outFormat); 121 m_inFormat= new SimpleDateFormat(format) [all...] |
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/ |
SimpleDateFormat.java | 28 * {@icuenhanced java.text.SimpleDateFormat}.{@icu _usage_} 30 * <p><code>SimpleDateFormat</code> is a concrete class for formatting and 35 * <code>SimpleDateFormat</code> allows you to start by choosing 90 * <tt><b>*</b></tt> These items are not supported by Java's SimpleDateFormat.<br> 136 * SimpleDateFormat formatter 137 * = new SimpleDateFormat ("yyyy.MM.dd G 'at' hh:mm:ss a zzz"); 153 * SimpleDateFormat must interpret the abbreviated year 155 * within 80 years before and 20 years after the time the SimpleDateFormat 157 * SimpleDateFormat instance created on Jan 1, 1997, the string 206 public class SimpleDateFormat extends DateFormat [all...] |
/external/caliper/examples/src/main/java/examples/ |
ExpensiveObjectsBenchmark.java | 22 import java.text.SimpleDateFormat; 58 new SimpleDateFormat(); 63 SimpleDateFormat sdf = new SimpleDateFormat();
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
ASN1UTCTime.java | 5 import java.text.SimpleDateFormat; 129 // SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmss'Z'"); 130 SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmss'Z'", Locale.US); 149 // SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmss'Z'", locale); 150 SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmss'Z'", Locale.US); 176 // SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmssz") [all...] |