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.
67 * <code>SimpleDateFormat</code> allows you to start by choosing
69 * are encouraged to create a date-time formatter with either
83 * <code>'A'</code> to <code>'Z'</code> and from <code>'a'</code> to
86 * Text can be quoted using single quotes (<code>'</code>) to avoid
94 * <code>'A'</code> to <code>'Z'</code> and from <code>'a'</code> to
226 * number of digits, and shorter numbers are zero-padded to this amount.
228 * it's needed to separate two adjacent fields.<br><br></li>
234 * is truncated to 2 digits; otherwise it is interpreted as a
238 * digits. So using the pattern "MM/dd/yyyy", "01/11/12" parses to
242 * relative to some century. It does this by adjusting dates to be
266 * support of week years can be tested with a call to {@link
345 * other than the pattern letters; that's up to the client of the class.
398 * It is recommended to create separate format instances for each thread.
416 // - 0 (default) for version up to JDK 1.1.3
451 * The minus sign to be used with format and parse.
505 * Cache to hold the DateTimePatterns of a Locale.
517 * The Locale used to instantiate this
593 * @param formatSymbols the date format symbols to be used for formatting
866 // Copy the compiled pattern to a char array
889 /* Initialize the fields we use to disambiguate ambiguous years. Separate
898 /* Define one-century window into which to disambiguate dates using
909 * to begin on the date the user specifies.
912 * <code>startDate</code> to <code>startDate + 100 years</code>.
935 * the result to the given <code>StringBuffer</code>.
937 * @param date the date-time value to be formatted into a date-time string.
938 * @param toAppendTo where the new date-time text is to be appended.
954 // Convert input date to time field list
988 * to build the resulting String, as well as to determine information
998 * @param obj The object to format
1024 // Map index into pattern character string to Calendar field number
1040 // Map index into pattern character string to DateFormat field number
1055 // Maps from DecimalFormatSymbols index to Field constant
1102 // 2 or maxIntCount. If we make any changes to this,
1122 zeroPaddingNumber(value, 2, 2, buffer); // clip 1996 to 96
1340 * Parses text from a string to produce a <code>Date</code>.
1342 * The method attempts to parse text starting at the index given by
1345 * to the index after the last character used (parsing does not necessarily
1346 * use all characters up to the end of the string), and the parsed
1347 * date is returned. The updated <code>pos</code> can be used to
1348 * indicate the starting point for the next call to this method.
1350 * changed, the error index of <code>pos</code> is set to the index of
1354 * calendar} to produce a {@code Date}. All of the {@code
1363 * TimeZone} value that has previously been set by a call to
1365 * to be restored for further operations.
1416 // Peek the next pattern to determine if we need to
1427 // subParse() needs to determine whether a '-' after a number
1496 * @param start where to start parsing.
1498 * @param data the string array to parsed.
1512 // unfortunately requires us to test all array elements.
1586 * find time zone 'text' matched zoneStrings and set to internal
1595 // Want to be able to parse both short and long forms.
1645 // Also if tz.getDSTSaving() returns 0 for DST, use tz to
1658 * sets calb to the parsed value.
1660 * @param text the text to be parsed
1661 * @param start the character position to start parsing
1666 * @return updated parsed position, or its negative value to indicate a parsing error
1734 * @param text the time text to be parsed.
1735 * @param start where to start parsing.
1736 * @param ch the pattern character for the date field text to be parsed.
1739 * and we should use the count to know when to stop parsing.
1741 * is true, then a two-digit year was parsed and may need to be readjusted.
1742 * @param origPos origPos.errorIndex is used to return an error index
1746 * an error index is set to origPos.errorIndex.
1776 // We handle a few special cases here where we need to parse
1778 // to handle some of them here because some fields require extra processing on
1785 // It would be good to unify this with the obeyCount logic below,
1786 // but that's going to be difficult.
1849 // that the year value is to be treated literally, without any
1850 // two-digit year adjustments (e.g., from "01" to 2001). Otherwise
1851 // we made adjustments to place the 2-digit year in the proper
1852 // century, for parsed strings from "00" to "99". Any other string
1859 // 6/18/1903 to 6/17/2003. As a result, years 00, 01, and 02
1860 // correspond to 2000, 2001, and 2002. Years 04, 05, etc. correspond
1861 // to 1904, 1905, etc. If the year is 03, then it is 2003 if the
1876 // Don't want to parse the month if it is a string
1885 // Want to be able to parse both short and long forms.
1923 // Want to be able to parse both short and long forms.
2130 * Translates a pattern, mapping each character in the from string to the
2131 * corresponding character in the to string.
2135 private String translatePattern(String pattern, String from, String to) {
2151 // to serialization compatibility. The pattern letters
2153 if (ci < to.length()) {
2154 c = to.charAt(ci);
2191 * Applies the given pattern string to this date format.
2204 * Applies the given localized pattern string to this date format.
2206 * @param pattern a String to be mapped to the new date and time format
2270 * @return true if the given object is equal to this
2308 // to replace it with a ZoneInfo equivalent in order to
2333 // If the negative subpattern is not absent, we have to analayze
2334 // it in order to check if it has a following minus sign.