Package org.joda.time.format

Examples of org.joda.time.format.DateTimeParserBucket$SavedField


    Locale locale = null;
    Integer pivotYear = null;
    int defaultYear = 2000;
    DateTimeZone timeZone = null;
   
    DateTimeParserBucket bucket = new DateTimeParserBucket(0, chronology, locale, pivotYear, defaultYear);
    int newPos = parser.parseInto(bucket, text, 0);
    if (newPos >= 0) {
      long millis = bucket.computeMillis(true, text);
      if (formatter.isOffsetParsed() && bucket.getOffsetInteger() != null) {
        int parsedOffset = bucket.getOffsetInteger();
        DateTimeZone parsedZone = DateTimeZone.forOffsetMillis(parsedOffset);
        chronology = chronology.withZone(parsedZone);
      } else if (bucket.getZone() != null) {
        chronology = chronology.withZone(bucket.getZone());
      }
      DateTime dt = new DateTime(millis, chronology);
      if (timeZone != null) {
        dt = dt.withZone(timeZone);
      }
View Full Code Here

TOP

Related Classes of org.joda.time.format.DateTimeParserBucket$SavedField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.