summaryrefslogtreecommitdiff
path: root/java/text/SimpleDateFormat.java
Commit message (Collapse)AuthorAgeFilesLines
...
* 2003-06-05 Scott Gilbertson <scottg@mantatest.com>Tom Tromey2003-06-051-1/+4
| | | | | * java/text/SimpleDateFormat.java (SimpleDateFormat): Added numberFormat.setParseIntegerOnly(true).
* Add License clarificationMark Wielaard2002-01-221-5/+16
|
* * java/text/SimpleDateFormat.javaTom Tromey2001-09-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (SimpleDateFormat(String,DateFormatSymbols)): Call computeCenturyStart(). * gnu/java/locale/LocaleInformation_de.java (word_breaks, sentence_breaks, line_breaks): Removed. (collation_rules): Use `k,K', not `j,K'. Don't using leading `-'. Use `0<1', not `0,1'. Use `9<A', not `9A'. * gnu/java/locale/LocaleInformation_nl.java: Likewise. * gnu/java/locale/LocaleInformation_en.java: Likewise. * java/text/DateFormatSymbols.java: Merged with libgcj. * java/text/StringCharacterIterator.java: Reindented and merged with libgcj. (StringCharacterIterator(String,int,int,int)): Simplified. (current): Likewise. (next): Likewise. (previous): Likewise. (last): Likewise. (equals): Likewise. (setText): Now public. Also sets all fields. * java/text/RuleBasedCollator.java (clone): Rewrote. * java/text/Collator.java: Mostly merged with libgcj. * java/text/MessageFormat.java: Merged with libgcj. * java/text/FieldPosition.java: Reindented. Merged with libgcj. * java/text/ParsePosition.java: Reindented. Merged with libgcj. * java/text/Format.java: Reindented. Merged with libgcj. (parseObject): Doesn't throw exception on error. * java/text/CharacterIterator.java: Reindented. * java/text/ChoiceFormat.java: Merged with libgcj. * gnu/java/text/Makefile.am: New file. * gnu/java/Makefile.am (SUBDIRS): Added text. * configure.in (AC_OUTPUT): Added gnu/java/text/Makefile. * gnu/java/text/BaseBreakIterator.java: New file from libgcj. * gnu/java/text/CharacterBreakIterator.java: Likewise. * gnu/java/text/LineBreakIterator.java: Likewise. * gnu/java/text/SentenceBreakIterator.java: Likewise. * gnu/java/text/WordBreakIterator.java: Likewise. * java/text/BreakIterator.java: Merged with libgcj. * java/text/DefaultBreakIterator.java: Removed. * java/text/DecimalFormatSymbols.java: Merged with libgcj. * java/text/DateFormat.java: Merged with libgcj. * gnu/java/locale/Makefile.am (EXTRA_DIST): Added new file. * gnu/java/locale/LocaleInformation_en.java: Removed US-specific entries. (collation_rules): Use `k,K', not `j,K'. * gnu/java/locale/LocaleInformation_en_US.java: New file. * java/text/NumberFormat.java: Merged with libgcj. * java/text/DecimalFormat.java: Merged with libgcj.
* * java/util/Calendar.java (set): Never recompute fields here. TheyBryce McKinlay2001-07-271-63/+80
| | | | | | | | | | | | | | | | | | | | will already be set if someone set time explicitly, and it can cause problems to do so. Don't invalidate AM_PM setting if HOUR is set. * java/util/GregorianCalendar.java (computeTime): Don't ignore an HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is sane. * java/text/SimpleDateFormat.java (defaultCentury): New field. (readObject): Call set2DigitYearStart if appropriate so that defaultCentury is calculated. (SimpleDateFormat): Don't bother clearing calendar here. Call computeCenturyStart(). (set2DigitYearStart): Calculate and set defaultCentury. (format): Don't clone the calendar. Use "calendar" not "theCalendar" everywhere. (parse): Likewise. If the pattern is "y" or "yy" and it found exactly 2 numeric digits, use the 80-20 heuristic to parse the value into a default century based on defaultCenturyStart. (computeCenturyStart): Rewritten. Call set2DigitYearStart().
* * java/text/SimpleDateFormat.java (parse): Handle non-dst timeTom Tromey2001-05-161-8/+18
| | | | zones.
* * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET andTom Tromey2001-05-141-2/+4
| | | | ZONE_OFFSET just before computing the time.
* * java/text/SimpleDateFormat.java (computeCenturyStart): NewTom Tromey2001-05-101-17/+45
| | | | | | | | | | method. (defaultCenturyStart): Use it. (readObject): Likewise. (SimpleDateFormat): Clear the calendar. Set the grouping on the number format. (parse): Copy the calendar before modifying it. Correctly handle the time zone.
* * java/text/SimpleDateFormat.javaWarren Levy2001-04-201-654/+203
| | | | | | | | | | (indexInArray): Removed private method. (processYear): Removed private method. (parseLenient): Removed private method. (parseLeadingZeros): Removed private method. (parseStrict): Removed private method. (expect): Added new private method from libgcj. (parse): Merge with libgcj version with minor fixes.
* * java/text/SimpleDateFormat.java (format): Compute hour for casesWarren Levy2001-01-201-6/+6
| | | | | | | HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11) correctly. Adjust properly from 0-23 clock hour. Fixes failure in Mauve test java.text.SimpleDateFormat.Test (format).
* * java/text/DateFormatSymbols.java (formatPrefixes): Made field static.Warren Levy2000-11-281-2/+6
| | | | | * java/text/SimpleDateFormat.java (format): Added case for TIMEZONE_FIELD.
* * java/text/SimpleDateFormat.java: Minor formatting fixes.Warren Levy2000-11-281-46/+39
|
* * gnu/java/locale/LocaleInformation_en.java (localPatternChars):Warren Levy2000-11-281-23/+82
| | | | | | | | | | | | | | | | | | | | | Letters 'k' and 'h' were reversed from the spec. * java/text/DateFormat.java: Minor formatting fixes. (DEFAULT): Added comment to note discrepancy against JCL. (equals): Check that numberFormat is equals (per JCL). * java/text/SimpleDateFormat.java (tokens): Made transient. (serialVersionUID): Added new field. (readObject): Added serialization method. (standardChars): Added new private field. (SimpleDateFormat): Rewrote constructors to match JCL. Merged from libgcj. (toLocalizedPattern): Merged from libgcj. (applyLocalizedPattern): Merged from libgcj. (format): Merged from libgcj; now handles pos. (parseLenient): Made private. (parseStrict): Made private. * java/util/TimeZone.java: Use user.timezone property if set. (setRawOffset): Added abstract method per spec. (getTimeZone): Changed comment to reflect that GMT is the default.
* Change license to libgcc-like terms.Paul Fisher2000-03-151-21/+27
| | | | Fix copyright years.
* Added date parsing supportAaron M. Renn1999-02-241-153/+474
|
* Make strict date parsing work...sort of, for most thingsAaron M. Renn1999-01-261-29/+238
|
* Initial checkinAaron M. Renn1999-01-111-0/+568