Lines Matching defs:format

17 package android.text.format;
38 This class takes as inputs a format string and a representation of a date/time.
39 The format string controls how the output is generated.
43 of that field. For instance, the format character 'M' is used to
79 Text in the format string that should be copied verbatim rather that
125 This designator indicates the hour of the day in 12 hour format.
134 This designator indicates the hour of the day in 24 hour format.
199 * Returns true if user preference is set to 24-hour format.
201 * @return true if 24 hour time format is selected, false otherwise.
244 * Returns a {@link java.text.DateFormat} object that can format the time according
263 * Returns a {@link java.text.DateFormat} object that can format the date
277 * Returns a {@link java.text.DateFormat} object to format the date
278 * as if the date format setting were set to <code>value</code>,
279 * including null to use the locale's default format.
281 * @param value the date format setting string to interpret for
287 String format = getDateFormatStringForSetting(context, value);
289 return new java.text.SimpleDateFormat(format);
302 value = String.format(template, "yyyy", "MM", "dd");
304 value = String.format(template, "yyyy", "dd", "MM");
308 value = String.format(template, "MM", "dd", "yyyy");
310 value = String.format(template, "MM", "yyyy", "dd");
314 value = String.format(template, "dd", "MM", "yyyy");
316 value = String.format(template, "dd", "yyyy", "MM");
334 * Returns a {@link java.text.DateFormat} object that can format the date
344 * Returns a {@link java.text.DateFormat} object that can format the date
354 * Gets the current date format stored as a char array. The array will contain
356 * specified by the user's format preference. Note that this order is
400 * Given a format string and a time in milliseconds since Jan 1, 1970 GMT, returns a
402 * @param inFormat the format string, as described in {@link android.text.format.DateFormat}
406 public static final CharSequence format(CharSequence inFormat, long inTimeInMillis) {
407 return format(inFormat, new Date(inTimeInMillis));
411 * Given a format string and a {@link java.util.Date} object, returns a CharSequence containing
413 * @param inFormat the format string, as described in {@link android.text.format.DateFormat}
414 * @param inDate the date to format
417 public static final CharSequence format(CharSequence inFormat, Date inDate) {
422 return format(inFormat, c);
426 * Given a format string and a {@link java.util.Calendar} object, returns a CharSequence
428 * @param inFormat the format string, as described in {@link android.text.format.DateFormat}
429 * @param inDate the date to format
432 public static final CharSequence format(CharSequence inFormat, Calendar inDate) {