/external/icu4c/i18n/ |
windtfmt.cpp | 77 int32_t glueIndex = DateFormat::kDateTime; 79 if (patSize >= (DateFormat::kDateTimeOffset + DateFormat::kShort + 1)) { 81 glueIndex = (int32_t)(DateFormat::kDateTimeOffset + (fDateStyle - DateFormat::kDateOffset)); 96 Win32DateFormat::Win32DateFormat(DateFormat::EStyle timeStyle, DateFormat::EStyle dateStyle, const Locale &locale, UErrorCode &status) 97 : DateFormat(), fDateTimeMsg(NULL), fTimeStyle(timeStyle), fDateStyle(dateStyle), fLocale(&locale), fZoneID() 108 : DateFormat(other) 123 DateFormat::operator=(other) [all...] |
udat.cpp | 33 * @param fmt the UDateFormat, definitely a DateFormat, maybe something else 38 dynamic_cast<const SimpleDateFormat*>(reinterpret_cast<const DateFormat*>(fmt))==NULL) { 132 DateFormat *fmt; 137 fmt = (DateFormat*) (*gOpener)(timeStyle,dateStyle,locale,tzID,tzIDLength,pattern,patternLength,status); 144 fmt = DateFormat::createDateTimeInstance((DateFormat::EStyle)dateStyle, 145 (DateFormat::EStyle)timeStyle); 148 fmt = DateFormat::createDateTimeInstance((DateFormat::EStyle)dateStyle, 149 (DateFormat::EStyle)timeStyle [all...] |
/frameworks/base/docs/html/sdk/api_diff/18/changes/ |
android.text.format.DateFormat.html | 10 android.text.format.DateFormat 74 Class android.text.format.<A HREF="../../../../reference/android/text/format/DateFormat.html" target="_top"><font size="+2"><code>DateFormat</code></font></A> 86 <A NAME="android.text.format.DateFormat.getBestDateTimePattern_added(java.util.Locale, java.lang.String)"></A> 87 <nobr><code>String</code> <A HREF="../../../../reference/android/text/format/DateFormat.html#getBestDateTimePattern(java.util.Locale, java.lang.String)" target="_top"><code>getBestDateTimePattern</code></A>(<code>Locale,</nobr> String<nobr><nobr></code>)</nobr> 102 <A NAME="android.text.format.DateFormat.AM_PM"></A> 103 <nobr><code>char</code> <A HREF="../../../../reference/android/text/format/DateFormat.html#AM_PM" target="_top"><code>AM_PM</code></font></A></nobr> </TD> 111 <A NAME="android.text.format.DateFormat.CAPITAL_AM_PM"></A> 112 <nobr><code>char</code> <A HREF="../../../../reference/android/text/format/DateFormat.html#CAPITAL_AM_PM" target="_top"><code>CAPITAL_AM_PM</code></font></A></nobr> </TD> 120 <A NAME="android.text.format.DateFormat.DATE"></A [all...] |
/cts/tests/tests/net/src/android/net/http/cts/ |
SslCertificate_DNameTest.java | 19 import java.text.DateFormat; 34 SslCertificate ssl = new SslCertificate(TO, BY, DateFormat.getInstance().format( 35 date1), DateFormat.getInstance().format(date2));
|
/libcore/luni/src/test/java/libcore/java/text/ |
AttributedCharacterIteratorAttributeTest.java | 22 import java.text.DateFormat; 35 assertSameReserialized(DateFormat.Field.ERA); 36 assertSameReserialized(DateFormat.Field.TIME_ZONE);
|
/external/icu4c/test/intltest/ |
dtfmtrtts.cpp | 44 DateFormatRoundTripTest::DateFormatRoundTripTest() : dateFormat(0) { 48 delete dateFormat; 141 const Locale *avail = DateFormat::getAvailableLocales(locCount); 142 logln("DateFormat available locales: %d", locCount); 192 static const char *styleName(DateFormat::EStyle s) 196 case DateFormat::SHORT: return "SHORT"; 197 case DateFormat::MEDIUM: return "MEDIUM"; 198 case DateFormat::LONG: return "LONG"; 199 case DateFormat::FULL: return "FULL"; 200 // case DateFormat::DEFAULT: return "DEFAULT" [all...] |
windttst.cpp | 146 DateFormat *wbf = DateFormat::createDateTimeInstance(DateFormat::kFull, DateFormat::kFull, wlocale); 147 DateFormat *wdf = DateFormat::createDateInstance(DateFormat::kFull, wlocale); 148 DateFormat *wtf = DateFormat::createTimeInstance(DateFormat::kFull, wlocale) [all...] |
dtfmrgts.cpp | 74 SimpleDateFormat *sdf = (SimpleDateFormat*) DateFormat::createDateInstance(); 80 dataerrln("Error calling DateFormat::createDateTimeInstance"); 125 DateFormat *fmt = DateFormat::createDateTimeInstance(DateFormat::SHORT, 126 DateFormat::SHORT, Locale::getUS()); 128 dataerrln("Error calling DateFormat::createDateTimeInstance"); 162 //expected.put(new LongKey(DateFormat.MONTH_FIELD), "5"); 163 //expected.put(new LongKey(DateFormat.DATE_FIELD), "3"); 164 //expected.put(new LongKey(DateFormat.YEAR_FIELD), "97") [all...] |
miscdtfm.h | 17 * Performs miscellaneous tests for DateFormat, SimpleDateFormat, DateFormatSymbols
|
/cts/tests/tests/text/src/android/text/format/cts/ |
DateUtilsTest.java | 180 fixedTime + DAY_DURATION, fixedTime, java.text.DateFormat.FULL, 181 java.text.DateFormat.FULL)); 183 fixedTime, java.text.DateFormat.DEFAULT, java.text.DateFormat.FULL)); 185 fixedTime, java.text.DateFormat.LONG, java.text.DateFormat.FULL)); 187 fixedTime, java.text.DateFormat.MEDIUM, java.text.DateFormat.FULL)); 189 fixedTime, java.text.DateFormat.SHORT, java.text.DateFormat.FULL)) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ |
SimpleDate.java | 19 import java.text.DateFormat; 49 mCachedStringRepresentation = DateFormat.getDateInstance(DateFormat.SHORT).format(timestamp); 110 mCachedStringRepresentation = DateFormat.getDateInstance(DateFormat.SHORT).format(timestamp);
|
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
MessageFormatTest.java | 26 import java.text.DateFormat; 80 assertTrue("Wrong locale2", format.getFormats()[0].equals(DateFormat 81 .getDateInstance(DateFormat.DEFAULT, mk))); 100 assertTrue("Wrong time format", formats[0].equals(DateFormat 102 assertTrue("Wrong date format", formats[1].equals(DateFormat 118 buffer.append(DateFormat.getTimeInstance().format(date)); 120 buffer.append(DateFormat.getDateInstance().format(date)); 176 String expected = "xx " + DateFormat.getInstance().format(date); 189 .equals(DateFormat.getTimeInstance())); 193 .equals(DateFormat.getTimeInstance(DateFormat.SHORT))) [all...] |
Support_MessageFormat.java | 20 import java.text.DateFormat; 62 t_FormatWithField(2, format, objects, null, DateFormat.Field.AM_PM, 0, 68 t_FormatWithField(4, format, objects, null, DateFormat.Field.ERA, 0, 0); 89 v.add(new FieldContainer(3, 6, DateFormat.Field.MONTH)); 92 v.add(new FieldContainer(7, 9, DateFormat.Field.DAY_OF_MONTH)); 95 v.add(new FieldContainer(11, 15, DateFormat.Field.YEAR)); 97 v.add(new FieldContainer(19, 20, DateFormat.Field.HOUR1)); 100 v.add(new FieldContainer(21, 23, DateFormat.Field.MINUTE)); 103 v.add(new FieldContainer(24, 26, DateFormat.Field.SECOND)); 106 v.add(new FieldContainer(27, 29, DateFormat.Field.AM_PM)) [all...] |
/frameworks/base/core/java/android/widget/ |
DateTimeView.java | 36 import java.text.DateFormat; 66 DateFormat mLastFormat; 145 DateFormat format; 191 private DateFormat getTimeFormat() { 192 return android.text.format.DateFormat.getTimeFormat(getContext()); 195 private DateFormat getDateFormat() { 199 return DateFormat.getDateInstance(DateFormat.SHORT); 205 return DateFormat.getDateInstance(DateFormat.SHORT) [all...] |
/libcore/luni/src/main/java/libcore/icu/ |
LocaleData.java | 19 import java.text.DateFormat; 82 // Used by android.text.format.DateFormat.getTimeFormat. 142 case DateFormat.SHORT: 144 case DateFormat.MEDIUM: 146 case DateFormat.LONG: 148 case DateFormat.FULL: 156 case DateFormat.SHORT: 158 case DateFormat.MEDIUM: 160 case DateFormat.LONG: 162 case DateFormat.FULL [all...] |
/libcore/support/src/test/java/tests/support/ |
Support_MessageFormat.java | 20 import java.text.DateFormat; 61 t_FormatWithField(2, format, objects, null, DateFormat.Field.AM_PM, 0, 67 t_FormatWithField(4, format, objects, null, DateFormat.Field.ERA, 0, 0); 88 v.add(new FieldContainer(3, 6, DateFormat.Field.MONTH)); 91 v.add(new FieldContainer(7, 9, DateFormat.Field.DAY_OF_MONTH)); 94 v.add(new FieldContainer(11, 15, DateFormat.Field.YEAR)); 96 v.add(new FieldContainer(19, 20, DateFormat.Field.HOUR1)); 99 v.add(new FieldContainer(21, 23, DateFormat.Field.MINUTE)); 102 v.add(new FieldContainer(24, 26, DateFormat.Field.SECOND)); 105 v.add(new FieldContainer(27, 29, DateFormat.Field.AM_PM)) [all...] |
/external/apache-http/src/org/apache/http/protocol/ |
HttpDateGenerator.java | 34 import java.text.DateFormat; 60 private final DateFormat dateformat; field in class:HttpDateGenerator 67 this.dateformat = new SimpleDateFormat(PATTERN_RFC1123, Locale.US); 68 this.dateformat.setTimeZone(GMT); 75 this.dateAsText = this.dateformat.format(new Date(now));
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
TimeUtil.java | 67 SimpleDateFormat dateFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy"); 68 return dateFormat.format(new Date(time)); 77 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy.MM.dd_HH.mm.ss"); 78 return dateFormat.format(new Date());
|
/external/icu4c/samples/datefmt/answers/ |
main_3.cpp | 39 DateFormat *fmt; 73 fmt = DateFormat::createDateTimeInstance( 74 DateFormat::kFull, DateFormat::kFull, loc);
|
/external/icu4c/samples/datefmt/ |
main.cpp | 39 DateFormat *fmt; 73 fmt = DateFormat::createDateTimeInstance( 74 DateFormat::kFull, DateFormat::kFull, loc);
|
/external/icu4c/test/cintltst/ |
cdtrgtst.h | 26 * DateFormat Regression tests
|
/external/icu4c/i18n/unicode/ |
datefmt.h | 43 * DateFormat is an abstract class for a family of classes that convert dates and 48 * subclass of DateFormat: SimpleDateFormat, which can handle pretty much all normal 51 * DateFormat helps you to format and parse dates for any locale. Your code can 59 * DateFormat* dfmt = DateFormat::createDateInstance(); 70 * DateFormat* df = DateFormat::createDateInstance(); 83 * DateFormat* dfmt = DateFormat::createDateInstance(); 84 * FieldPosition pos(DateFormat::YEAR_FIELD) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/text/format/ |
DateFormat_Delegate.java | 25 * Delegate used to provide new implementation for the native methods of {@link DateFormat} 27 * Through the layoutlib_create tool, the original methods of DateFormat have been replaced
|
/external/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
HttpDate.java | 19 import java.text.DateFormat; 35 private static final ThreadLocal<DateFormat> STANDARD_DATE_FORMAT = 36 new ThreadLocal<DateFormat>() { 37 @Override protected DateFormat initialValue() { 38 DateFormat rfc1123 = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US);
|
/libcore/luni/src/main/java/libcore/net/http/ |
HttpDate.java | 19 import java.text.DateFormat; 35 private static final ThreadLocal<DateFormat> STANDARD_DATE_FORMAT 36 = new ThreadLocal<DateFormat>() { 37 @Override protected DateFormat initialValue() { 38 DateFormat rfc1123 = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US);
|