Lines Matching refs:format
17 package android.text.format;
349 * Print the current value given the format string provided. See man
352 * @param format a string containing the desired format.
355 public String format(String format) {
357 return calculator.format(format);
361 * Return the current time in YYYYMMDDTHHMMSS<tz> format
373 * Parses a date-time string in either the RFC 2445 format or an abbreviated
374 * format that does not include the "time" field. For example, all of the
420 * Parse a time in the current zone in YYYYMMDDTHHMMSS format.
496 throw new TimeFormatException(String.format(
512 * Parse a time in RFC 3339 format. This method also parses simple dates
635 throw new TimeFormatException(String.format(
644 String.format("Unexpected length; should be %d characters",
773 * <p>The same as format("%Y%m%dT%H%M%S"), or format("%Y%m%dT%H%M%SZ") for a Time with a
915 * Return a string in the RFC 3339 format.
922 * @return string in the RFC 3339 format.
926 return format(Y_M_D);
928 return format(Y_M_D_T_H_M_S_000_Z);
930 String base = format(Y_M_D_T_H_M_S_000);
936 return String.format(Locale.US, "%s%s%02d:%02d", base, sign, hours, minutes);
1095 public String format(String format) {
1096 if (format == null) {
1097 format = "%c";
1100 return formatter.format(format, wallTime, zoneInfo);
1190 return String.format("%04d%02d%02dT%02d%02d%02d%s(%d,%d,%d,%d,%d)",