Home
last modified time | relevance | path

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

1234567891011

/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
DSimpleDateFormatTest.java17 import com.ibm.icu.text.SimpleDateFormat;
45 SimpleDateFormat sdf = new SimpleDateFormat(hmzmdy); in testFormatCalendarStringBufferFieldPosition()
57 SimpleDateFormat sdf = new SimpleDateFormat(hmzmdy); in testParseStringCalendarParsePosition()
74 SimpleDateFormat sdf = new SimpleDateFormat(); in testSimpleDateFormat()
75 java.text.SimpleDateFormat jsdf = new java.text.SimpleDateFormat(); in testSimpleDateFormat()
83 SimpleDateFormat sdf = new SimpleDateFormat(mdy); in testSimpleDateFormatString()
84 java.text.SimpleDateFormat jsdf = new java.text.SimpleDateFormat(mdy); in testSimpleDateFormatString()
93 SimpleDateFormat sdf = new SimpleDateFormat(mdy, l); in testSimpleDateFormatStringLocale()
94 java.text.SimpleDateFormat jsdf = new java.text.SimpleDateFormat(mdy, l); in testSimpleDateFormatStringLocale()
103 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.java204 public class SimpleDateFormat extends DateFormat { class
215 public SimpleDateFormat() { in SimpleDateFormat() method in SimpleDateFormat
216 super(new java.text.SimpleDateFormat()); in SimpleDateFormat()
225 public SimpleDateFormat(String pattern) in SimpleDateFormat() method in SimpleDateFormat
227 super(new java.text.SimpleDateFormat(pattern)); in SimpleDateFormat()
236 public SimpleDateFormat(String pattern, Locale loc) in SimpleDateFormat() method in SimpleDateFormat
238 super(new java.text.SimpleDateFormat(pattern, loc)); in SimpleDateFormat()
247 public SimpleDateFormat(String pattern, ULocale loc) in SimpleDateFormat() method in SimpleDateFormat
276 public SimpleDateFormat(String pattern, DateFormatSymbols formatData) in SimpleDateFormat() method in SimpleDateFormat
278 super(new java.text.SimpleDateFormat(pattern, formatData.dfs)); in SimpleDateFormat()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateFormatRegressionTestJ.java22 import android.icu.text.SimpleDateFormat;
33 private static SimpleDateFormat sdf_;
36 sdf_ = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); in init()
69 SimpleDateFormat aSimpleDF = (SimpleDateFormat)DateFormat.getDateTimeInstance(); in Test4148168()
155 SimpleDateFormat aSimpleDF = (SimpleDateFormat) DateFormat.getDateTimeInstance(); in Test4253490()
168 SimpleDateFormat fmt = new SimpleDateFormat(dateFormat); in Test4266432()
178 SimpleDateFormat sdf = new SimpleDateFormat(); in Test4358730()
202 SimpleDateFormat sdf = new SimpleDateFormat(pattern, Locale.JAPAN); in Test4375399()
229 SimpleDateFormat sdf = new SimpleDateFormat(pattern); in Test4468663()
253 SimpleDateFormat sdf = (SimpleDateFormat) sdf_.clone(); in run()
[all …]
DDateFormatMiscTests.java22 import android.icu.text.SimpleDateFormat;
52 SimpleDateFormat formatter; in Test4097450()
53 SimpleDateFormat resultFormatter = new SimpleDateFormat("yyyy"); in Test4097450()
58 formatter = new SimpleDateFormat(dformat[i]); in Test4097450()
80 SimpleDateFormat df = new SimpleDateFormat("E hh:mm", symbols); in Test4099975new()
81 SimpleDateFormat dfClone = (SimpleDateFormat) df.clone(); in Test4099975new()
101 SimpleDateFormat df = new SimpleDateFormat("E hh:mm"); in Test4099975new()
103 SimpleDateFormat dfClone = (SimpleDateFormat) df.clone(); in Test4099975new()
DDateFormatRegressionTest.java30 import android.icu.text.SimpleDateFormat;
58 SimpleDateFormat sdf = (SimpleDateFormat) DateFormat.getDateInstance(); in Test4029195()
174 SimpleDateFormat fmt = new SimpleDateFormat("yyMMdd", Locale.US); in Test4056591()
217 SimpleDateFormat fmt; in Test4059917()
219 fmt = new SimpleDateFormat("yyyy/MM/dd"); in Test4059917()
222 fmt = new SimpleDateFormat("yyyyMMdd"); in Test4059917()
227 public void aux917(SimpleDateFormat fmt, String str) { in aux917()
252 SimpleDateFormat formatter = new SimpleDateFormat("yyyy-DDD.hh:mm:ss"); in Test4060212()
264 formatter = new SimpleDateFormat("yyyy-ddd.hh:mm:ss"); in Test4060212()
278 SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy"); in Test4061287()
[all …]
DIntlTestSimpleDateFormatAPI.java29 import android.icu.text.SimpleDateFormat;
55 SimpleDateFormat def = new SimpleDateFormat(); in TestAPI()
58 SimpleDateFormat pat = new SimpleDateFormat(pattern); in TestAPI()
60 SimpleDateFormat pat_fr = new SimpleDateFormat(pattern, Locale.FRENCH); in TestAPI()
64 SimpleDateFormat cust1 = new SimpleDateFormat(pattern, symbols); in TestAPI()
191 class StubDateFormat extends SimpleDateFormat{ in TestCoverage()
DDateFormatTest.java47 import android.icu.text.SimpleDateFormat;
171 String actualLocalPattern1 = ((SimpleDateFormat)date1).toLocalizedPattern(); in TestPatterns()
172 String actualLocalPattern2 = ((SimpleDateFormat)date2).toLocalizedPattern(); in TestPatterns()
206 SimpleDateFormat sdf = new SimpleDateFormat("zzzz"); in TestWallyWedel()
297 SimpleDateFormat fullFmt = new SimpleDateFormat("EEE MMM dd HH:mm:ss.SSS zzz yyyy G"); in TestTwoDigitYearDSTParse()
298SimpleDateFormat fmt = new SimpleDateFormat("dd-MMM-yy h:mm:ss 'o''clock' a z", Locale.ENGLISH); in TestTwoDigitYearDSTParse()
363 dateFormats[2] = new SimpleDateFormat(buf.toString(), Locale.US); in TestFieldPosition()
370 dateFormats[3] = new SimpleDateFormat(buf.toString(), Locale.US); in TestFieldPosition()
462 logln(" Pattern = " + ((SimpleDateFormat) df).toPattern()); in TestFieldPosition()
655 final SimpleDateFormat[] formats = { in TestGenericTime()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatRegressionTestJ.java21 import com.ibm.icu.text.SimpleDateFormat;
29 private static SimpleDateFormat sdf_;
32 sdf_ = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); in init()
65 SimpleDateFormat aSimpleDF = (SimpleDateFormat)DateFormat.getDateTimeInstance(); in Test4148168()
151 SimpleDateFormat aSimpleDF = (SimpleDateFormat) DateFormat.getDateTimeInstance(); in Test4253490()
164 SimpleDateFormat fmt = new SimpleDateFormat(dateFormat); in Test4266432()
174 SimpleDateFormat sdf = new SimpleDateFormat(); in Test4358730()
198 SimpleDateFormat sdf = new SimpleDateFormat(pattern, Locale.JAPAN); in Test4375399()
225 SimpleDateFormat sdf = new SimpleDateFormat(pattern); in Test4468663()
249 SimpleDateFormat sdf = (SimpleDateFormat) sdf_.clone(); in run()
[all …]
DDateFormatMiscTests.java21 import com.ibm.icu.text.SimpleDateFormat;
48 SimpleDateFormat formatter; in Test4097450()
49 SimpleDateFormat resultFormatter = new SimpleDateFormat("yyyy"); in Test4097450()
54 formatter = new SimpleDateFormat(dformat[i]); in Test4097450()
76 SimpleDateFormat df = new SimpleDateFormat("E hh:mm", symbols); in Test4099975new()
77 SimpleDateFormat dfClone = (SimpleDateFormat) df.clone(); in Test4099975new()
97 SimpleDateFormat df = new SimpleDateFormat("E hh:mm"); in Test4099975new()
99 SimpleDateFormat dfClone = (SimpleDateFormat) df.clone(); in Test4099975new()
DDateFormatRegressionTest.java29 import com.ibm.icu.text.SimpleDateFormat;
54 SimpleDateFormat sdf = (SimpleDateFormat) DateFormat.getDateInstance(); in Test4029195()
170 SimpleDateFormat fmt = new SimpleDateFormat("yyMMdd", Locale.US); in Test4056591()
213 SimpleDateFormat fmt; in Test4059917()
215 fmt = new SimpleDateFormat("yyyy/MM/dd"); in Test4059917()
218 fmt = new SimpleDateFormat("yyyyMMdd"); in Test4059917()
223 public void aux917(SimpleDateFormat fmt, String str) { in aux917()
248 SimpleDateFormat formatter = new SimpleDateFormat("yyyy-DDD.hh:mm:ss"); in Test4060212()
260 formatter = new SimpleDateFormat("yyyy-ddd.hh:mm:ss"); in Test4060212()
274 SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy"); in Test4061287()
[all …]
DIntlTestSimpleDateFormatAPI.java28 import com.ibm.icu.text.SimpleDateFormat;
51 SimpleDateFormat def = new SimpleDateFormat(); in TestAPI()
54 SimpleDateFormat pat = new SimpleDateFormat(pattern); in TestAPI()
56 SimpleDateFormat pat_fr = new SimpleDateFormat(pattern, Locale.FRENCH); in TestAPI()
60 SimpleDateFormat cust1 = new SimpleDateFormat(pattern, symbols); in TestAPI()
187 class StubDateFormat extends SimpleDateFormat{ in TestCoverage()
DDateFormatTest.java46 import com.ibm.icu.text.SimpleDateFormat;
167 String actualLocalPattern1 = ((SimpleDateFormat)date1).toLocalizedPattern(); in TestPatterns()
168 String actualLocalPattern2 = ((SimpleDateFormat)date2).toLocalizedPattern(); in TestPatterns()
202 SimpleDateFormat sdf = new SimpleDateFormat("zzzz"); in TestWallyWedel()
293 SimpleDateFormat fullFmt = new SimpleDateFormat("EEE MMM dd HH:mm:ss.SSS zzz yyyy G"); in TestTwoDigitYearDSTParse()
294SimpleDateFormat fmt = new SimpleDateFormat("dd-MMM-yy h:mm:ss 'o''clock' a z", Locale.ENGLISH); in TestTwoDigitYearDSTParse()
359 dateFormats[2] = new SimpleDateFormat(buf.toString(), Locale.US); in TestFieldPosition()
366 dateFormats[3] = new SimpleDateFormat(buf.toString(), Locale.US); in TestFieldPosition()
458 logln(" Pattern = " + ((SimpleDateFormat) df).toPattern()); in TestFieldPosition()
651 final SimpleDateFormat[] formats = { in TestGenericTime()
[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.cpp77 SimpleDateFormat *sdf = (SimpleDateFormat*) DateFormat::createDateInstance(); in Test4029195()
232SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("yyMMdd"), Locale::getUS(), status); in Test4056591()
288 SimpleDateFormat *fmt; in Test4059917()
291 fmt = new SimpleDateFormat( UnicodeString("yyyy/MM/dd"), status ); in Test4059917()
299 fmt = new SimpleDateFormat( UnicodeString("yyyyMMdd"), status ); in Test4059917()
307 void DateFormatRegressionTest::aux917( SimpleDateFormat *fmt, UnicodeString& str ) { in aux917()
347 SimpleDateFormat *formatter = new SimpleDateFormat(UnicodeString("yyyy-DDD.hh:mm:ss"), status); in Test4060212()
376 formatter = new SimpleDateFormat(UnicodeString("yyyy-ddd.hh:mm:ss"), status); in Test4060212()
400 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("dd/MM/yyyy"), status); in Test4061287()
578 SimpleDateFormat fmt("MM/dd/yy", Locale::getUK(), ec); in Test4073003()
[all …]
Dsdtfmtts.cpp54 SimpleDateFormat def(status); in testAPI()
65 SimpleDateFormat pat(pattern, status); in testAPI()
71 SimpleDateFormat pat_fr(pattern, Locale::getFrench(), status); in testAPI()
83 SimpleDateFormat cust1(pattern, symbols, status); in testAPI()
90 SimpleDateFormat cust2(pattern, *symbols, status); in testAPI()
97 SimpleDateFormat ovr1(pattern, override, status); in testAPI()
103 SimpleDateFormat ovr2(pattern, override, Locale::getGerman(), status); in testAPI()
110 SimpleDateFormat ovr3(pattern, override_bogus, Locale::getGerman(), status); in testAPI()
116 SimpleDateFormat copy(pat); in testAPI()
250 DateFormat *test = new SimpleDateFormat(status); in testAPI()
[all …]
Dmiscdtfm.cpp114 SimpleDateFormat *formatter; in test4097450()
115 SimpleDateFormat *resultFormatter = new SimpleDateFormat((UnicodeString)"yyyy", status); in test4097450()
126 formatter = new SimpleDateFormat(dformat[i], status); in test4097450()
166 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("E hh:mm"), *symbols, status); in test4099975()
198 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("E hh:mm"), status); in test4099975()
229 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("E hh:mm"), symbols, status); in test4099975()
258 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("E hh:mm"), status); in test4099975()
Ddtfmttst.cpp203 SimpleDateFormat date1(pattern, locale, errorCode); in TestPatterns()
204 SimpleDateFormat date2(pattern, locale, errorCode); in TestPatterns()
244 SimpleDateFormat *sdf = new SimpleDateFormat((UnicodeString)"zzzz", status); in TestWallyWedel()
370SimpleDateFormat* fullFmt = new SimpleDateFormat((UnicodeString)"EEE MMM dd HH:mm:ss.SSS zzz yyyy … in TestTwoDigitYearDSTParse()
371SimpleDateFormat *fmt = new SimpleDateFormat((UnicodeString)"dd-MMM-yy h:mm:ss 'o''clock' a z", Lo… in TestTwoDigitYearDSTParse()
522 dateFormats[2] = new SimpleDateFormat(buf, Locale::getUS(), ec); in TestFieldPosition()
529 dateFormats[3] = new SimpleDateFormat(buf, Locale::getUS(), ec); in TestFieldPosition()
585 SimpleDateFormat* sdtfmt = dynamic_cast<SimpleDateFormat*>(df); in TestFieldPosition()
666 SimpleDateFormat* f = new SimpleDateFormat(status); in TestPartialParse994()
685 DateFormatTest::tryPat994(SimpleDateFormat* format, const char* pat, const char* str, UDate expecte… in tryPat994()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dsmpdtfmt.h717 class U_I18N_API SimpleDateFormat: public DateFormat {
728 SimpleDateFormat(UErrorCode& status);
741 SimpleDateFormat(const UnicodeString& pattern,
765 SimpleDateFormat(const UnicodeString& pattern,
781 SimpleDateFormat(const UnicodeString& pattern,
806 SimpleDateFormat(const UnicodeString& pattern,
820 SimpleDateFormat(const UnicodeString& pattern,
833 SimpleDateFormat(const UnicodeString& pattern,
841 SimpleDateFormat(const SimpleDateFormat&);
847 SimpleDateFormat& operator=(const SimpleDateFormat&);
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DASN1GeneralizedTime.java5 import java.text.SimpleDateFormat;
115 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmss'Z'", Locale.US); in ASN1GeneralizedTime()
136 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmss'Z'", Locale.US); in ASN1GeneralizedTime()
255 SimpleDateFormat dateF; in getDate()
265 dateF = new SimpleDateFormat("yyyyMMddHHmmss.SSS'Z'", Locale.US); in getDate()
272 dateF = new SimpleDateFormat("yyyyMMddHHmmss'Z'", Locale.US); in getDate()
285 dateF = new SimpleDateFormat("yyyyMMddHHmmss.SSSz", Locale.US); in getDate()
292 dateF = new SimpleDateFormat("yyyyMMddHHmmssz", Locale.US); in getDate()
304 dateF = new SimpleDateFormat("yyyyMMddHHmmss.SSS", Locale.US); in getDate()
311 dateF = new SimpleDateFormat("yyyyMMddHHmmss", Locale.US); in getDate()
DASN1UTCTime.java5 import java.text.SimpleDateFormat;
129 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()
195 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmssz", Locale.US); in getAdjustedDate()
/external/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/
DDateFormatPerformanceTest.java23 private com.ibm.icu.text.SimpleDateFormat[] icuDateFormat;
25 private java.text.SimpleDateFormat[] jdkDateFormat;
42 icuDateFormat = new com.ibm.icu.text.SimpleDateFormat[threads]; in setup()
43 jdkDateFormat = new java.text.SimpleDateFormat[threads]; in setup()
45 icuDateFormat[i] = new com.ibm.icu.text.SimpleDateFormat(pattern, locale); in setup()
46 jdkDateFormat[i] = new java.text.SimpleDateFormat(pattern, locale); in setup()
63 new com.ibm.icu.text.SimpleDateFormat(pattern, locale); in TestICUConstruction()
71 new java.text.SimpleDateFormat(pattern, locale);
/external/jetty/src/java/org/eclipse/jetty/util/
DDateCache.java22 import java.text.SimpleDateFormat;
53 private SimpleDateFormat _tzFormat;
56 private SimpleDateFormat _minFormat;
117 _tzFormat=new SimpleDateFormat(_tzFormatString,_locale); in setTimeZone()
118 _minFormat=new SimpleDateFormat(_minFormatString,_locale); in setTimeZone()
122 _tzFormat=new SimpleDateFormat(_tzFormatString,_dfs); in setTimeZone()
123 _minFormat=new SimpleDateFormat(_minFormatString,_dfs); in setTimeZone()
127 _tzFormat=new SimpleDateFormat(_tzFormatString); in setTimeZone()
128 _minFormat=new SimpleDateFormat(_minFormatString); in setTimeZone()
287 public SimpleDateFormat getFormat() in getFormat()
/external/icu/icu4c/source/i18n/
Dsmpdtfmt.cpp226 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(SimpleDateFormat) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
228 SimpleDateFormat::NSOverride::~NSOverride() { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
235 void SimpleDateFormat::NSOverride::free() { in free()
299 const NumberFormat *SimpleDateFormat::getNumberFormatByIndex( in getNumberFormatByIndex()
361 SimpleDateFormat::~SimpleDateFormat() in ~SimpleDateFormat()
378 SimpleDateFormat::SimpleDateFormat(UErrorCode& status) in SimpleDateFormat() function in SimpleDateFormat
392 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern, in SimpleDateFormat() function in SimpleDateFormat
412 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern, in SimpleDateFormat() function in SimpleDateFormat
436 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern, in SimpleDateFormat() function in SimpleDateFormat
458 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern, in SimpleDateFormat() function in SimpleDateFormat
[all …]
/external/icu/icu4j/samples/src/com/ibm/icu/samples/text/datetimepatterngenerator/
DDateTimePatternGeneratorSample.java13 import com.ibm.icu.text.SimpleDateFormat;
60 SimpleDateFormat sdf = new SimpleDateFormat(pattern, locale); in getBestPatternExample()
123 SimpleDateFormat format = new SimpleDateFormat(gen.getBestPattern("MMMMddHmm"), locale); in addPatternExample()
153 SimpleDateFormat format = new SimpleDateFormat("EEEE d MMMM y HH:mm:ss zzzz",locale); in replaceFieldTypesExample()

1234567891011