Lines Matching defs:to

8  * particular file as subject to the "Classpath" exception as provided
18 * 2 along with this work; if not, write to the Free Software Foundation,
34 * patents. This notice and attribution to Taligent may not be removed.
65 * <code>SimpleDateFormat</code> allows you to start by choosing
67 * are encouraged to create a date-time formatter with either
81 * <code>'A'</code> to <code>'Z'</code> and from <code>'a'</code> to
84 * Text can be quoted using single quotes (<code>'</code>) to avoid
92 * <code>'A'</code> to <code>'Z'</code> and from <code>'a'</code> to
234 * number of digits, and shorter numbers are zero-padded to this amount.
236 * it's needed to separate two adjacent fields.<br><br></li>
242 * is truncated to 2 digits; otherwise it is interpreted as a
246 * digits. So using the pattern "MM/dd/yyyy", "01/11/12" parses to
250 * relative to some century. It does this by adjusting dates to be
274 * support of week years can be tested with a call to {@link
370 * other than the pattern letters; that's up to the client of the class.
427 * It is recommended to create separate format instances for each thread.
446 // - 0 (default) for version up to JDK 1.1.3
481 * The minus sign to be used with format and parse.
492 * True if standalone form needs to be used.
546 * The Locale used to instantiate this
586 * <p>This is equivalent to calling
631 * @param formatSymbols the date format symbols to be used for formatting
871 // Copy the compiled pattern to a char array
894 /* Initialize the fields we use to disambiguate ambiguous years. Separate
903 /* Define one-century window into which to disambiguate dates using
914 * to begin on the date the user specifies.
917 * <code>startDate</code> to <code>startDate + 100 years</code>.
941 * the result to the given <code>StringBuffer</code>.
943 * @param date the date-time value to be formatted into a date-time string.
944 * @param toAppendTo where the new date-time text is to be appended.
961 // Convert input date to time field list
995 * to build the resulting String, as well as to determine information
1005 * @param obj The object to format
1032 // Map index into pattern character string to Calendar field number
1059 // Map index into pattern character string to DateFormat field number
1086 // Maps from DecimalFormatSymbols index to Field constant
1148 // 2 or maxIntCount. If we make any changes to this,
1171 } // clip 1996 to 96
1417 * Parses text from a string to produce a <code>Date</code>.
1419 * The method attempts to parse text starting at the index given by
1422 * to the index after the last character used (parsing does not necessarily
1423 * use all characters up to the end of the string), and the parsed
1424 * date is returned. The updated <code>pos</code> can be used to
1425 * indicate the starting point for the next call to this method.
1427 * changed, the error index of <code>pos</code> is set to the index of
1431 * calendar} to produce a {@code Date}. All of the {@code
1440 * TimeZone} value that has previously been set by a call to
1442 * to be restored for further operations.
1494 // Peek the next pattern to determine if we need to
1505 // subParse() needs to determine whether a '-' after a number
1600 * @param start where to start parsing.
1602 * @param data the string array to parsed.
1618 // unfortunately requires us to test all array elements.
1703 * find time zone 'text' matched zoneStrings and set to internal
1712 // Want to be able to parse both short and long forms.
1762 // Also if tz.getDSTSaving() returns 0 for DST, use tz to
1775 * sets calb to the parsed value.
1777 * @param text the text to be parsed
1778 * @param start the character position to start parsing
1783 * @return updated parsed position, or its negative value to indicate a parsing error
1851 * @param text the time text to be parsed.
1852 * @param start where to start parsing.
1856 * and we should use the count to know when to stop parsing.
1858 * is true, then a two-digit year was parsed and may need to be readjusted.
1859 * @param origPos origPos.errorIndex is used to return an error index
1863 * an error index is set to origPos.errorIndex.
1897 // We handle a few special cases here where we need to parse
1899 // to handle some of them here because some fields require extra processing on
1907 // It would be good to unify this with the obeyCount logic below,
1908 // but that's going to be difficult.
1969 // that the year value is to be treated literally, without any
1970 // two-digit year adjustments (e.g., from "01" to 2001). Otherwise
1971 // we made adjustments to place the 2-digit year in the proper
1972 // century, for parsed strings from "00" to "99". Any other string
1979 // 6/18/1903 to 6/17/2003. As a result, years 00, 01, and 02
1980 // correspond to 2000, 2001, and 2002. Years 04, 05, etc. correspond
1981 // to 1904, 1905, etc. If the year is 03, then it is 2003 if the
1996 // Don't want to parse the month if it is a string
2005 // Want to be able to parse both short and long forms.
2027 // Don't want to parse the month if it is a string
2056 // Want to be able to parse both short and long forms.
2257 * Translates a pattern, mapping each character in the from string to the
2258 * corresponding character in the to string.
2262 private String translatePattern(String pattern, String from, String to) {
2279 // to serialization compatibility. The pattern letters
2281 if (ci < to.length()) {
2282 c = to.charAt(ci);
2320 * Applies the given pattern string to this date format.
2337 * Applies the given localized pattern string to this date format.
2339 * @param pattern a String to be mapped to the new date and time format
2405 * @return true if the given object is equal to this
2461 // to replace it with a ZoneInfo equivalent in order to
2486 // If the negative subpattern is not absent, we have to analayze
2487 // it in order to check if it has a following minus sign.