Home
last modified time | relevance | path

Searched refs:SimpleDateFormat (Results 1 – 25 of 290) sorted by relevance

12345678910>>...12

/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
DSimpleDateFormatTest.java19 import com.ibm.icu.text.SimpleDateFormat;
47 SimpleDateFormat sdf = new SimpleDateFormat(hmzmdy); in testFormatCalendarStringBufferFieldPosition()
59 SimpleDateFormat sdf = new SimpleDateFormat(hmzmdy); in testParseStringCalendarParsePosition()
76 SimpleDateFormat sdf = new SimpleDateFormat(); in testSimpleDateFormat()
77 java.text.SimpleDateFormat jsdf = new java.text.SimpleDateFormat(); in testSimpleDateFormat()
85 SimpleDateFormat sdf = new SimpleDateFormat(mdy); in testSimpleDateFormatString()
86 java.text.SimpleDateFormat jsdf = new java.text.SimpleDateFormat(mdy); in testSimpleDateFormatString()
95 SimpleDateFormat sdf = new SimpleDateFormat(mdy, l); in testSimpleDateFormatStringLocale()
96 java.text.SimpleDateFormat jsdf = new java.text.SimpleDateFormat(mdy, l); in testSimpleDateFormatStringLocale()
105 SimpleDateFormat sdf = new SimpleDateFormat(mdy, l); in testSimpleDateFormatStringULocale()
[all …]
/external/apache-http/src/org/apache/http/impl/cookie/
DDateUtils.java36 import java.text.SimpleDateFormat;
162 SimpleDateFormat dateParser = DateFormatHolder.formatFor(dateFormat); in parseDate()
205 SimpleDateFormat formatter = DateFormatHolder.formatFor(pattern); in formatDate()
222 private static final ThreadLocal<SoftReference<Map<String, SimpleDateFormat>>>
223 THREADLOCAL_FORMATS = new ThreadLocal<SoftReference<Map<String, SimpleDateFormat>>>() {
226 protected SoftReference<Map<String, SimpleDateFormat>> initialValue() {
227 return new SoftReference<Map<String, SimpleDateFormat>>(
228 new HashMap<String, SimpleDateFormat>());
245 public static SimpleDateFormat formatFor(String pattern) { in formatFor()
246 SoftReference<Map<String, SimpleDateFormat>> ref = THREADLOCAL_FORMATS.get(); in formatFor()
[all …]
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
DSimpleDateFormat.java206 public class SimpleDateFormat extends DateFormat { class
217 public SimpleDateFormat() { in SimpleDateFormat() method in SimpleDateFormat
218 super(new java.text.SimpleDateFormat()); in SimpleDateFormat()
227 public SimpleDateFormat(String pattern) in SimpleDateFormat() method in SimpleDateFormat
229 super(new java.text.SimpleDateFormat(pattern)); in SimpleDateFormat()
238 public SimpleDateFormat(String pattern, Locale loc) in SimpleDateFormat() method in SimpleDateFormat
240 super(new java.text.SimpleDateFormat(pattern, loc)); in SimpleDateFormat()
249 public SimpleDateFormat(String pattern, ULocale loc) in SimpleDateFormat() method in SimpleDateFormat
278 public SimpleDateFormat(String pattern, DateFormatSymbols formatData) in SimpleDateFormat() method in SimpleDateFormat
280 super(new java.text.SimpleDateFormat(pattern, formatData.dfs)); in SimpleDateFormat()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DASN1GeneralizedTime.java5 import java.text.SimpleDateFormat;
140 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmss'Z'", Locale.US); in ASN1GeneralizedTime()
160 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmss'Z'", Locale.US); in ASN1GeneralizedTime()
278 SimpleDateFormat dateF; in getDate()
288 dateF = new SimpleDateFormat("yyyyMMddHHmmss.SSS'Z'", Locale.US); in getDate()
294 dateF = new SimpleDateFormat("yyyyMMddHHmmss'Z'", Locale.US); in getDate()
300 dateF = new SimpleDateFormat("yyyyMMddHHmm'Z'", Locale.US); in getDate()
306 dateF = new SimpleDateFormat("yyyyMMddHH'Z'", Locale.US); in getDate()
318 dateF = new SimpleDateFormat("yyyyMMddHHmmss.SSSz", Locale.US); in getDate()
324 dateF = new SimpleDateFormat("yyyyMMddHHmmssz", Locale.US); in getDate()
[all …]
DASN1UTCTime.java5 import java.text.SimpleDateFormat;
130 SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmss'Z'", Locale.US); in ASN1UTCTime()
150 SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmss'Z'", Locale.US); in ASN1UTCTime()
177 SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmssz", Locale.US); in getDate()
194 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmssz", Locale.US); in getAdjustedDate()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/
DASN1GeneralizedTime.java6 import java.text.SimpleDateFormat;
142 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmss'Z'", Locale.US); in ASN1GeneralizedTime()
162 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmss'Z'", Locale.US); in ASN1GeneralizedTime()
280 SimpleDateFormat dateF; in getDate()
290 dateF = new SimpleDateFormat("yyyyMMddHHmmss.SSS'Z'", Locale.US); in getDate()
296 dateF = new SimpleDateFormat("yyyyMMddHHmmss'Z'", Locale.US); in getDate()
302 dateF = new SimpleDateFormat("yyyyMMddHHmm'Z'", Locale.US); in getDate()
308 dateF = new SimpleDateFormat("yyyyMMddHH'Z'", Locale.US); in getDate()
320 dateF = new SimpleDateFormat("yyyyMMddHHmmss.SSSz", Locale.US); in getDate()
326 dateF = new SimpleDateFormat("yyyyMMddHHmmssz", Locale.US); in getDate()
[all …]
DASN1UTCTime.java6 import java.text.SimpleDateFormat;
132 SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmss'Z'", Locale.US); in ASN1UTCTime()
152 SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmss'Z'", Locale.US); in ASN1UTCTime()
179 SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmssz", Locale.US); in getDate()
196 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmssz", Locale.US); in getAdjustedDate()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateFormatRegressionTestJ.java30 import android.icu.text.SimpleDateFormat;
41 private SimpleDateFormat sdf_;
45 sdf_ = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); in init()
76 SimpleDateFormat aSimpleDF = (SimpleDateFormat)DateFormat.getDateTimeInstance(); in Test4148168()
165 SimpleDateFormat aSimpleDF = (SimpleDateFormat) DateFormat.getDateTimeInstance(); in Test4253490()
179 SimpleDateFormat fmt = new SimpleDateFormat(dateFormat); in Test4266432()
190 SimpleDateFormat sdf = new SimpleDateFormat(); in Test4358730()
215 SimpleDateFormat sdf = new SimpleDateFormat(pattern, Locale.JAPAN); in Test4375399()
244 SimpleDateFormat sdf = new SimpleDateFormat(pattern); in Test4468663()
269 SimpleDateFormat sdf = (SimpleDateFormat) sdf_.clone(); in run()
[all …]
DDateFormatMiscTests.java29 import android.icu.text.SimpleDateFormat;
55 SimpleDateFormat formatter; in Test4097450()
56 SimpleDateFormat resultFormatter = new SimpleDateFormat("yyyy"); in Test4097450()
61 formatter = new SimpleDateFormat(dformat[i]); in Test4097450()
84 SimpleDateFormat df = new SimpleDateFormat("E hh:mm", symbols); in Test4099975new()
85 SimpleDateFormat dfClone = (SimpleDateFormat) df.clone(); in Test4099975new()
105 SimpleDateFormat df = new SimpleDateFormat("E hh:mm"); in Test4099975new()
107 SimpleDateFormat dfClone = (SimpleDateFormat) df.clone(); in Test4099975new()
DDateFormatRegressionTest.java37 import android.icu.text.SimpleDateFormat;
61 SimpleDateFormat sdf = (SimpleDateFormat) DateFormat.getDateInstance(); in Test4029195()
179 SimpleDateFormat fmt = new SimpleDateFormat("yyMMdd", Locale.US); in Test4056591()
223 SimpleDateFormat fmt; in Test4059917()
225 fmt = new SimpleDateFormat("yyyy/MM/dd"); in Test4059917()
228 fmt = new SimpleDateFormat("yyyyMMdd"); in Test4059917()
233 public void aux917(SimpleDateFormat fmt, String str) { in aux917()
259 SimpleDateFormat formatter = new SimpleDateFormat("yyyy-DDD.hh:mm:ss"); in Test4060212()
271 formatter = new SimpleDateFormat("yyyy-ddd.hh:mm:ss"); in Test4060212()
286 SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy"); in Test4061287()
[all …]
DIntlTestSimpleDateFormatAPI.java36 import android.icu.text.SimpleDateFormat;
59 SimpleDateFormat def = new SimpleDateFormat(); in TestAPI()
62 SimpleDateFormat pat = new SimpleDateFormat(pattern); in TestAPI()
64 SimpleDateFormat pat_fr = new SimpleDateFormat(pattern, Locale.FRENCH); in TestAPI()
68 SimpleDateFormat cust1 = new SimpleDateFormat(pattern, symbols); in TestAPI()
196 class StubDateFormat extends SimpleDateFormat{ in TestCoverage()
DDateFormatTest.java55 import android.icu.text.SimpleDateFormat;
175 String actualLocalPattern1 = ((SimpleDateFormat)date1).toLocalizedPattern(); in TestPatterns()
176 String actualLocalPattern2 = ((SimpleDateFormat)date2).toLocalizedPattern(); in TestPatterns()
211 SimpleDateFormat sdf = new SimpleDateFormat("zzzz"); in TestWallyWedel()
304 SimpleDateFormat fullFmt = new SimpleDateFormat("EEE MMM dd HH:mm:ss.SSS zzz yyyy G"); in TestTwoDigitYearDSTParse()
305SimpleDateFormat fmt = new SimpleDateFormat("dd-MMM-yy h:mm:ss 'o''clock' a z", Locale.ENGLISH); in TestTwoDigitYearDSTParse()
371 dateFormats[2] = new SimpleDateFormat(buf.toString(), Locale.US); in TestFieldPosition()
378 dateFormats[3] = new SimpleDateFormat(buf.toString(), Locale.US); in TestFieldPosition()
470 logln(" Pattern = " + ((SimpleDateFormat) df).toPattern()); in TestFieldPosition()
669 final SimpleDateFormat[] formats = { in TestGenericTime()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatRegressionTestJ.java29 import com.ibm.icu.text.SimpleDateFormat;
38 private SimpleDateFormat sdf_;
42 sdf_ = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); in init()
73 SimpleDateFormat aSimpleDF = (SimpleDateFormat)DateFormat.getDateTimeInstance(); in Test4148168()
162 SimpleDateFormat aSimpleDF = (SimpleDateFormat) DateFormat.getDateTimeInstance(); in Test4253490()
176 SimpleDateFormat fmt = new SimpleDateFormat(dateFormat); in Test4266432()
187 SimpleDateFormat sdf = new SimpleDateFormat(); in Test4358730()
212 SimpleDateFormat sdf = new SimpleDateFormat(pattern, Locale.JAPAN); in Test4375399()
241 SimpleDateFormat sdf = new SimpleDateFormat(pattern); in Test4468663()
266 SimpleDateFormat sdf = (SimpleDateFormat) sdf_.clone(); in run()
[all …]
DDateFormatMiscTests.java28 import com.ibm.icu.text.SimpleDateFormat;
52 SimpleDateFormat formatter; in Test4097450()
53 SimpleDateFormat resultFormatter = new SimpleDateFormat("yyyy"); in Test4097450()
58 formatter = new SimpleDateFormat(dformat[i]); in Test4097450()
81 SimpleDateFormat df = new SimpleDateFormat("E hh:mm", symbols); in Test4099975new()
82 SimpleDateFormat dfClone = (SimpleDateFormat) df.clone(); in Test4099975new()
102 SimpleDateFormat df = new SimpleDateFormat("E hh:mm"); in Test4099975new()
104 SimpleDateFormat dfClone = (SimpleDateFormat) df.clone(); in Test4099975new()
DDateFormatRegressionTest.java36 import com.ibm.icu.text.SimpleDateFormat;
58 SimpleDateFormat sdf = (SimpleDateFormat) DateFormat.getDateInstance(); in Test4029195()
176 SimpleDateFormat fmt = new SimpleDateFormat("yyMMdd", Locale.US); in Test4056591()
220 SimpleDateFormat fmt; in Test4059917()
222 fmt = new SimpleDateFormat("yyyy/MM/dd"); in Test4059917()
225 fmt = new SimpleDateFormat("yyyyMMdd"); in Test4059917()
230 public void aux917(SimpleDateFormat fmt, String str) { in aux917()
256 SimpleDateFormat formatter = new SimpleDateFormat("yyyy-DDD.hh:mm:ss"); in Test4060212()
268 formatter = new SimpleDateFormat("yyyy-ddd.hh:mm:ss"); in Test4060212()
283 SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy"); in Test4061287()
[all …]
DIntlTestSimpleDateFormatAPI.java35 import com.ibm.icu.text.SimpleDateFormat;
56 SimpleDateFormat def = new SimpleDateFormat(); in TestAPI()
59 SimpleDateFormat pat = new SimpleDateFormat(pattern); in TestAPI()
61 SimpleDateFormat pat_fr = new SimpleDateFormat(pattern, Locale.FRENCH); in TestAPI()
65 SimpleDateFormat cust1 = new SimpleDateFormat(pattern, symbols); in TestAPI()
193 class StubDateFormat extends SimpleDateFormat{ in TestCoverage()
DDateFormatTest.java54 import com.ibm.icu.text.SimpleDateFormat;
172 String actualLocalPattern1 = ((SimpleDateFormat)date1).toLocalizedPattern(); in TestPatterns()
173 String actualLocalPattern2 = ((SimpleDateFormat)date2).toLocalizedPattern(); in TestPatterns()
208 SimpleDateFormat sdf = new SimpleDateFormat("zzzz"); in TestWallyWedel()
301 SimpleDateFormat fullFmt = new SimpleDateFormat("EEE MMM dd HH:mm:ss.SSS zzz yyyy G"); in TestTwoDigitYearDSTParse()
302SimpleDateFormat fmt = new SimpleDateFormat("dd-MMM-yy h:mm:ss 'o''clock' a z", Locale.ENGLISH); in TestTwoDigitYearDSTParse()
368 dateFormats[2] = new SimpleDateFormat(buf.toString(), Locale.US); in TestFieldPosition()
375 dateFormats[3] = new SimpleDateFormat(buf.toString(), Locale.US); in TestFieldPosition()
467 logln(" Pattern = " + ((SimpleDateFormat) df).toPattern()); in TestFieldPosition()
666 final SimpleDateFormat[] formats = { in TestGenericTime()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dsmpdtfmt.h723 class U_I18N_API SimpleDateFormat: public DateFormat {
734 SimpleDateFormat(UErrorCode& status);
747 SimpleDateFormat(const UnicodeString& pattern,
771 SimpleDateFormat(const UnicodeString& pattern,
787 SimpleDateFormat(const UnicodeString& pattern,
812 SimpleDateFormat(const UnicodeString& pattern,
826 SimpleDateFormat(const UnicodeString& pattern,
839 SimpleDateFormat(const UnicodeString& pattern,
847 SimpleDateFormat(const SimpleDateFormat&);
853 SimpleDateFormat& operator=(const SimpleDateFormat&);
[all …]
/external/testng/src/main/java/org/testng/
DTimeBombSkipException.java7 import java.text.SimpleDateFormat;
24 private static final SimpleDateFormat SDF= new SimpleDateFormat("yyyy/MM/dd");
49 m_inFormat= new SimpleDateFormat(format); in TimeBombSkipException()
50 m_outFormat= new SimpleDateFormat(format); in TimeBombSkipException()
88 m_inFormat= new SimpleDateFormat(inFormat); in TimeBombSkipException()
89 m_outFormat= new SimpleDateFormat(outFormat); in TimeBombSkipException()
121 m_inFormat= new SimpleDateFormat(format); in TimeBombSkipException()
122 m_outFormat= new SimpleDateFormat(format); in TimeBombSkipException()
172 m_inFormat= new SimpleDateFormat(inFormat); in TimeBombSkipException()
173 m_outFormat= new SimpleDateFormat(outFormat); in TimeBombSkipException()
/external/icu/icu4c/source/test/intltest/
Ddtfmrgts.cpp81 SimpleDateFormat *sdf = (SimpleDateFormat*) DateFormat::createDateInstance(); in Test4029195()
236SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("yyMMdd"), Locale::getUS(), status); in Test4056591()
292 SimpleDateFormat *fmt; in Test4059917()
295 fmt = new SimpleDateFormat( UnicodeString("yyyy/MM/dd"), status ); in Test4059917()
303 fmt = new SimpleDateFormat( UnicodeString("yyyyMMdd"), status ); in Test4059917()
311 void DateFormatRegressionTest::aux917( SimpleDateFormat *fmt, UnicodeString& str ) { in aux917()
351 SimpleDateFormat *formatter = new SimpleDateFormat(UnicodeString("yyyy-DDD.hh:mm:ss"), status); in Test4060212()
380 formatter = new SimpleDateFormat(UnicodeString("yyyy-ddd.hh:mm:ss"), status); in Test4060212()
404 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("dd/MM/yyyy"), status); in Test4061287()
582 SimpleDateFormat fmt("MM/dd/yy", Locale::getUK(), ec); in Test4073003()
[all …]
Dsdtfmtts.cpp56 SimpleDateFormat def(status); in testAPI()
67 SimpleDateFormat pat(pattern, status); in testAPI()
73 SimpleDateFormat pat_fr(pattern, Locale::getFrench(), status); in testAPI()
85 SimpleDateFormat cust1(pattern, symbols, status); in testAPI()
92 SimpleDateFormat cust2(pattern, *symbols, status); in testAPI()
99 SimpleDateFormat ovr1(pattern, override, status); in testAPI()
105 SimpleDateFormat ovr2(pattern, override, Locale::getGerman(), status); in testAPI()
112 SimpleDateFormat ovr3(pattern, override_bogus, Locale::getGerman(), status); in testAPI()
118 SimpleDateFormat copy(pat); in testAPI()
252 DateFormat *test = new SimpleDateFormat(status); in testAPI()
[all …]
Dmiscdtfm.cpp116 SimpleDateFormat *formatter; in test4097450()
117 SimpleDateFormat *resultFormatter = new SimpleDateFormat((UnicodeString)"yyyy", status); in test4097450()
128 formatter = new SimpleDateFormat(dformat[i], status); in test4097450()
168 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("E hh:mm"), *symbols, status); in test4099975()
200 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("E hh:mm"), status); in test4099975()
231 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("E hh:mm"), symbols, status); in test4099975()
260 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("E hh:mm"), status); in test4099975()
Ddtfmttst.cpp213 SimpleDateFormat date1(pattern, locale, errorCode); in TestPatterns()
214 SimpleDateFormat date2(pattern, locale, errorCode); in TestPatterns()
254 SimpleDateFormat *sdf = new SimpleDateFormat((UnicodeString)"zzzz", status); in TestWallyWedel()
380SimpleDateFormat* fullFmt = new SimpleDateFormat((UnicodeString)"EEE MMM dd HH:mm:ss.SSS zzz yyyy … in TestTwoDigitYearDSTParse()
381SimpleDateFormat *fmt = new SimpleDateFormat((UnicodeString)"dd-MMM-yy h:mm:ss 'o''clock' a z", Lo… in TestTwoDigitYearDSTParse()
534 dateFormats[2] = new SimpleDateFormat(buf, Locale::getUS(), ec); in TestFieldPosition()
541 dateFormats[3] = new SimpleDateFormat(buf, Locale::getUS(), ec); in TestFieldPosition()
599 SimpleDateFormat* sdtfmt = dynamic_cast<SimpleDateFormat*>(df); in TestFieldPosition()
680 SimpleDateFormat* f = new SimpleDateFormat(status); in TestPartialParse994()
699 DateFormatTest::tryPat994(SimpleDateFormat* format, const char* pat, const char* str, UDate expecte… in tryPat994()
[all …]
/external/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/
DDateFormatPerformanceTest.java25 private com.ibm.icu.text.SimpleDateFormat[] icuDateFormat;
27 private java.text.SimpleDateFormat[] jdkDateFormat;
44 icuDateFormat = new com.ibm.icu.text.SimpleDateFormat[threads]; in setup()
45 jdkDateFormat = new java.text.SimpleDateFormat[threads]; in setup()
47 icuDateFormat[i] = new com.ibm.icu.text.SimpleDateFormat(pattern, locale); in setup()
48 jdkDateFormat[i] = new java.text.SimpleDateFormat(pattern, locale); in setup()
65 new com.ibm.icu.text.SimpleDateFormat(pattern, locale); in TestICUConstruction()
73 new java.text.SimpleDateFormat(pattern, locale);
/external/icu/icu4c/source/i18n/
Dsmpdtfmt.cpp235 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(SimpleDateFormat) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
237 SimpleDateFormat::NSOverride::~NSOverride() { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
244 void SimpleDateFormat::NSOverride::free() { in free()
308 const NumberFormat *SimpleDateFormat::getNumberFormatByIndex( in getNumberFormatByIndex()
319 SimpleDateFormat::~SimpleDateFormat() in ~SimpleDateFormat()
337 SimpleDateFormat::SimpleDateFormat(UErrorCode& status) in SimpleDateFormat() function in SimpleDateFormat
351 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern, in SimpleDateFormat() function in SimpleDateFormat
371 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern, in SimpleDateFormat() function in SimpleDateFormat
395 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern, in SimpleDateFormat() function in SimpleDateFormat
417 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern, in SimpleDateFormat() function in SimpleDateFormat
[all …]

12345678910>>...12