Home
last modified time | relevance | path

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

12345

/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/icu4c/source/i18n/unicode/
Dsmpdtfmt.h707 class U_I18N_API SimpleDateFormat: public DateFormat {
718 SimpleDateFormat(UErrorCode& status);
731 SimpleDateFormat(const UnicodeString& pattern,
755 SimpleDateFormat(const UnicodeString& pattern,
771 SimpleDateFormat(const UnicodeString& pattern,
796 SimpleDateFormat(const UnicodeString& pattern,
810 SimpleDateFormat(const UnicodeString& pattern,
823 SimpleDateFormat(const UnicodeString& pattern,
831 SimpleDateFormat(const SimpleDateFormat&);
837 SimpleDateFormat& operator=(const SimpleDateFormat&);
[all …]
/external/chromium_org/third_party/icu/source/i18n/unicode/
Dsmpdtfmt.h705 class U_I18N_API SimpleDateFormat: public DateFormat {
716 SimpleDateFormat(UErrorCode& status);
729 SimpleDateFormat(const UnicodeString& pattern,
753 SimpleDateFormat(const UnicodeString& pattern,
769 SimpleDateFormat(const UnicodeString& pattern,
794 SimpleDateFormat(const UnicodeString& pattern,
808 SimpleDateFormat(const UnicodeString& pattern,
821 SimpleDateFormat(const UnicodeString& pattern,
829 SimpleDateFormat(const SimpleDateFormat&);
835 SimpleDateFormat& operator=(const SimpleDateFormat&);
[all …]
/external/chromium_org/third_party/icu/source/test/intltest/
Ddtfmrgts.cpp74 SimpleDateFormat *sdf = (SimpleDateFormat*) DateFormat::createDateInstance(); in Test4029195()
228SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("yyMMdd"), Locale::getUS(), status); in Test4056591()
284 SimpleDateFormat *fmt; in Test4059917()
287 fmt = new SimpleDateFormat( UnicodeString("yyyy/MM/dd"), status ); in Test4059917()
295 fmt = new SimpleDateFormat( UnicodeString("yyyyMMdd"), status ); in Test4059917()
303 void DateFormatRegressionTest::aux917( SimpleDateFormat *fmt, UnicodeString& str ) { in aux917()
343 SimpleDateFormat *formatter = new SimpleDateFormat(UnicodeString("yyyy-DDD.hh:mm:ss"), status); in Test4060212()
372 formatter = new SimpleDateFormat(UnicodeString("yyyy-ddd.hh:mm:ss"), status); in Test4060212()
396 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("dd/MM/yyyy"), status); in Test4061287()
574 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.cpp191 SimpleDateFormat date1(pattern, locale, errorCode); in TestPatterns()
192 SimpleDateFormat date2(pattern, locale, errorCode); in TestPatterns()
232 SimpleDateFormat *sdf = new SimpleDateFormat((UnicodeString)"zzzz", status); in TestWallyWedel()
358SimpleDateFormat* fullFmt = new SimpleDateFormat((UnicodeString)"EEE MMM dd HH:mm:ss.SSS zzz yyyy … in TestTwoDigitYearDSTParse()
359SimpleDateFormat *fmt = new SimpleDateFormat((UnicodeString)"dd-MMM-yy h:mm:ss 'o''clock' a z", Lo… in TestTwoDigitYearDSTParse()
500 dateFormats[2] = new SimpleDateFormat(buf, Locale::getUS(), ec); in TestFieldPosition()
507 dateFormats[3] = new SimpleDateFormat(buf, Locale::getUS(), ec); in TestFieldPosition()
547 SimpleDateFormat* sdtfmt = dynamic_cast<SimpleDateFormat*>(df); in TestFieldPosition()
628 SimpleDateFormat* f = new SimpleDateFormat(status); in TestPartialParse994()
647 DateFormatTest::tryPat994(SimpleDateFormat* format, const char* pat, const char* str, UDate expecte… in tryPat994()
[all …]
Dincaltst.cpp418SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("MMMM d, yyyy G"), Locale("en_US@calend… in TestBuddhistFormat()
420SimpleDateFormat *fmt2 = new SimpleDateFormat(UnicodeString("MMMM d, yyyy G"), Locale("en_US@calen… in TestBuddhistFormat()
504SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("MMMM d, yy G"), Locale("en_US@calendar… in TestJapaneseFormat()
505SimpleDateFormat *fmt2 = new SimpleDateFormat(UnicodeString("MMMM d, yyyy G"), Locale("en_US@calen… in TestJapaneseFormat()
535 fmt = new SimpleDateFormat(UnicodeString("G y"), Locale("en_US@calendar=japanese"), status); in TestJapaneseFormat()
622SimpleDateFormat *fmt2 = new SimpleDateFormat(UnicodeString("HH:mm:ss.S MMMM d, yyyy G"), Locale("… in TestJapanese3860()
633SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("y.M.d"), Locale("ja_JP@calendar=japane… in TestJapanese3860()
673SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("y"), Locale("ja_JP@calendar=japanese")… in TestJapanese3860()
837SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("MMMM d, yyyy G"), Locale(" en_US@calen… in TestPersianFormat()
839SimpleDateFormat *fmt2 = new SimpleDateFormat(UnicodeString("MMMM d, yyyy G"), Locale("en_US@calen… in TestPersianFormat()
/external/icu/icu4c/source/test/intltest/
Ddtfmrgts.cpp76 SimpleDateFormat *sdf = (SimpleDateFormat*) DateFormat::createDateInstance(); in Test4029195()
231SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("yyMMdd"), Locale::getUS(), status); in Test4056591()
287 SimpleDateFormat *fmt; in Test4059917()
290 fmt = new SimpleDateFormat( UnicodeString("yyyy/MM/dd"), status ); in Test4059917()
298 fmt = new SimpleDateFormat( UnicodeString("yyyyMMdd"), status ); in Test4059917()
306 void DateFormatRegressionTest::aux917( SimpleDateFormat *fmt, UnicodeString& str ) { in aux917()
346 SimpleDateFormat *formatter = new SimpleDateFormat(UnicodeString("yyyy-DDD.hh:mm:ss"), status); in Test4060212()
375 formatter = new SimpleDateFormat(UnicodeString("yyyy-ddd.hh:mm:ss"), status); in Test4060212()
399 SimpleDateFormat *df = new SimpleDateFormat(UnicodeString("dd/MM/yyyy"), status); in Test4061287()
577 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.cpp193 SimpleDateFormat date1(pattern, locale, errorCode); in TestPatterns()
194 SimpleDateFormat date2(pattern, locale, errorCode); in TestPatterns()
234 SimpleDateFormat *sdf = new SimpleDateFormat((UnicodeString)"zzzz", status); in TestWallyWedel()
360SimpleDateFormat* fullFmt = new SimpleDateFormat((UnicodeString)"EEE MMM dd HH:mm:ss.SSS zzz yyyy … in TestTwoDigitYearDSTParse()
361SimpleDateFormat *fmt = new SimpleDateFormat((UnicodeString)"dd-MMM-yy h:mm:ss 'o''clock' a z", Lo… in TestTwoDigitYearDSTParse()
503 dateFormats[2] = new SimpleDateFormat(buf, Locale::getUS(), ec); in TestFieldPosition()
510 dateFormats[3] = new SimpleDateFormat(buf, Locale::getUS(), ec); in TestFieldPosition()
550 SimpleDateFormat* sdtfmt = dynamic_cast<SimpleDateFormat*>(df); in TestFieldPosition()
631 SimpleDateFormat* f = new SimpleDateFormat(status); in TestPartialParse994()
650 DateFormatTest::tryPat994(SimpleDateFormat* format, const char* pat, const char* str, UDate expecte… in tryPat994()
[all …]
Dincaltst.cpp415SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("MMMM d, yyyy G"), Locale("en_US@calend… in TestBuddhistFormat()
417SimpleDateFormat *fmt2 = new SimpleDateFormat(UnicodeString("MMMM d, yyyy G"), Locale("en_US@calen… in TestBuddhistFormat()
501SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("MMMM d, yy G"), Locale("en_US@calendar… in TestJapaneseFormat()
502SimpleDateFormat *fmt2 = new SimpleDateFormat(UnicodeString("MMMM d, yyyy G"), Locale("en_US@calen… in TestJapaneseFormat()
532 fmt = new SimpleDateFormat(UnicodeString("G y"), Locale("en_US@calendar=japanese"), status); in TestJapaneseFormat()
619SimpleDateFormat *fmt2 = new SimpleDateFormat(UnicodeString("HH:mm:ss.S MMMM d, yyyy G"), Locale("… in TestJapanese3860()
630SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("y.M.d"), Locale("ja_JP@calendar=japane… in TestJapanese3860()
670SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("y"), Locale("ja_JP@calendar=japanese")… in TestJapanese3860()
834SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("MMMM d, yyyy G"), Locale(" en_US@calen… in TestPersianFormat()
836SimpleDateFormat *fmt2 = new SimpleDateFormat(UnicodeString("MMMM d, yyyy G"), Locale("en_US@calen… in TestPersianFormat()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DDERGeneralizedTime.java5 import java.text.SimpleDateFormat;
108 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmss'Z'"); in DERGeneralizedTime()
222 SimpleDateFormat dateF; in getDate()
230 dateF = new SimpleDateFormat("yyyyMMddHHmmss.SSS'Z'"); in getDate()
234 dateF = new SimpleDateFormat("yyyyMMddHHmmss'Z'"); in getDate()
244 dateF = new SimpleDateFormat("yyyyMMddHHmmss.SSSz"); in getDate()
248 dateF = new SimpleDateFormat("yyyyMMddHHmmssz"); in getDate()
257 dateF = new SimpleDateFormat("yyyyMMddHHmmss.SSS"); in getDate()
261 dateF = new SimpleDateFormat("yyyyMMddHHmmss"); in getDate()
DDERUTCTime.java5 import java.text.SimpleDateFormat;
108 SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmss'Z'"); in DERUTCTime()
131 SimpleDateFormat dateF = new SimpleDateFormat("yyMMddHHmmssz"); in getDate()
146 SimpleDateFormat dateF = new SimpleDateFormat("yyyyMMddHHmmssz"); in getAdjustedDate()
/external/chromium_org/third_party/icu/source/i18n/
Dsmpdtfmt.cpp219 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(SimpleDateFormat) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
223 SimpleDateFormat::~SimpleDateFormat() in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
243 SimpleDateFormat::SimpleDateFormat(UErrorCode& status) in SimpleDateFormat() function in SimpleDateFormat
258 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern, in SimpleDateFormat() function in SimpleDateFormat
278 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern, in SimpleDateFormat() function in SimpleDateFormat
302 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern, in SimpleDateFormat() function in SimpleDateFormat
324 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern, in SimpleDateFormat() function in SimpleDateFormat
350 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern, in SimpleDateFormat() function in SimpleDateFormat
373 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern, in SimpleDateFormat() function in SimpleDateFormat
397 SimpleDateFormat::SimpleDateFormat(EStyle timeStyle, in SimpleDateFormat() function in SimpleDateFormat
[all …]
/external/icu/icu4c/source/i18n/
Dsmpdtfmt.cpp222 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(SimpleDateFormat) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
226 SimpleDateFormat::~SimpleDateFormat() in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
250 SimpleDateFormat::SimpleDateFormat(UErrorCode& status) in SimpleDateFormat() function in SimpleDateFormat
265 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern, in SimpleDateFormat() function in SimpleDateFormat
285 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern, in SimpleDateFormat() function in SimpleDateFormat
309 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern, in SimpleDateFormat() function in SimpleDateFormat
331 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern, in SimpleDateFormat() function in SimpleDateFormat
357 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern, in SimpleDateFormat() function in SimpleDateFormat
380 SimpleDateFormat::SimpleDateFormat(const UnicodeString& pattern, in SimpleDateFormat() function in SimpleDateFormat
404 SimpleDateFormat::SimpleDateFormat(EStyle timeStyle, in SimpleDateFormat() function in SimpleDateFormat
[all …]
/external/smack/src/org/jivesoftware/smack/util/
DDateFormatType.java22 import java.text.SimpleDateFormat;
62 public SimpleDateFormat createFormatter() { in createFormatter()
63 return new SimpleDateFormat(getFormatString()); in createFormatter()
/external/icu/icu4c/source/samples/dtptngsample/
Ddtptngsample.cpp56 SimpleDateFormat *sdf = new SimpleDateFormat(pattern,locales[j],status); in getBestPatternExample()
89SimpleDateFormat *sdf = new SimpleDateFormat(dtfg->getBestPattern("MMMMddHmm",status),locale,statu… in addPatternExample()
130 SimpleDateFormat *sdf = new SimpleDateFormat("EEEE d MMMM y HH:mm:ss zzzz",locale,status); in replaceFieldTypesExample()
/external/chromium_org/third_party/icu/source/samples/dtptngsample/
Ddtptngsample.cpp56 SimpleDateFormat *sdf = new SimpleDateFormat(pattern,locales[j],status); in getBestPatternExample()
104SimpleDateFormat *sdf = new SimpleDateFormat(dtfg->getBestPattern("MMMMddHmm",status),locale,statu… in addPatternExample()
145 SimpleDateFormat *sdf = new SimpleDateFormat("EEEE d MMMM y HH:mm:ss zzzz",locale,status); in replaceFieldTypesExample()
/external/smack/src/org/jivesoftware/smackx/workgroup/packet/
DQueueOverview.java27 import java.text.SimpleDateFormat;
43 private SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT);
123 SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT); in parseExtension()
DQueueDetails.java27 import java.text.SimpleDateFormat;
51 private SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT);
146 SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT); in parseExtension()
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/
DDerUTCTimeEDTest.java27 import java.text.SimpleDateFormat;
64 SimpleDateFormat sdf = in testUTCEncoder()
65 new SimpleDateFormat("dd.MM.yyyy HH:mm"); in testUTCEncoder()
112 myDate = new SimpleDateFormat("MM.dd.yyyy HH:mm"). in runTest()
DDerGeneralizedTimeEDTest.java27 import java.text.SimpleDateFormat;
82 SimpleDateFormat sdf = in testGeneralizedEncoder()
83 new SimpleDateFormat("dd.MM.yyyy HH:mm"); in testGeneralizedEncoder()
157 myDate = new SimpleDateFormat("MM.dd.yyyy HH:mm"). in runTest()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DHttpDate.java21 import java.text.SimpleDateFormat;
38 DateFormat rfc1123 = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US);
77 format = new SimpleDateFormat(BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS[i], Locale.US); in parse()

12345