org.joda.time.chrono.BaseChronology Java Examples

The following examples show how to use org.joda.time.chrono.BaseChronology. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Time_25_DateTimeZone_t.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #2
Source File: DateTimeZone.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #3
Source File: DateTimeZone.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        private static final long serialVersionUID = -3128740902654445468L;
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #4
Source File: Time_8_DateTimeZone_t.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #5
Source File: Time_8_DateTimeZone_s.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #6
Source File: Time_9_DateTimeZone_t.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #7
Source File: Time_9_DateTimeZone_s.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #8
Source File: Time_19_DateTimeZone_s.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #9
Source File: Time_19_DateTimeZone_t.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #10
Source File: Time_23_DateTimeZone_t.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #11
Source File: Time_23_DateTimeZone_s.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #12
Source File: Time_17_DateTimeZone_t.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #13
Source File: Time_17_DateTimeZone_s.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #14
Source File: Time_25_DateTimeZone_s.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #15
Source File: Cardumen_00189_s.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #16
Source File: Nopol2017_0089_s.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #17
Source File: Nopol2017_0089_t.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #18
Source File: Cardumen_00137_t.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #19
Source File: Cardumen_00137_s.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #20
Source File: Cardumen_0070_t.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #21
Source File: Cardumen_0070_s.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #22
Source File: Cardumen_00282_s.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #23
Source File: Cardumen_00282_t.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #24
Source File: Cardumen_0074_s.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #25
Source File: Cardumen_0074_t.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #26
Source File: Cardumen_00239_s.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #27
Source File: Cardumen_00239_t.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}
 
Example #28
Source File: Cardumen_00189_t.java    From coming with MIT License 6 votes vote down vote up
private static int parseOffset(String str) {
    // Can't use a real chronology if called during class
    // initialization. Offset parser doesn't need it anyhow.
    Chronology chrono = new BaseChronology() {
        public DateTimeZone getZone() {
            return null;
        }
        public Chronology withUTC() {
            return this;
        }
        public Chronology withZone(DateTimeZone zone) {
            return this;
        }
        public String toString() {
            return getClass().getName();
        }
    };
    return -(int) offsetFormatter().withChronology(chrono).parseMillis(str);
}