Code example for TimeZone

Methods: setDefault

0
    } 
 
    protected void tearDown() throws Exception { 
        DateTimeUtils.setCurrentMillisSystem(); 
        DateTimeZone.setDefault(originalDateTimeZone);
        TimeZone.setDefault(originalTimeZone);
        Locale.setDefault(originalLocale);
        originalDateTimeZone = null;
        originalTimeZone = null;
        originalLocale = null;
    } 
 
    //----------------------------------------------------------------------- 
    public void testForStyle_stringLengths() { 
        try { 
            DateTimeFormat.forStyle(null); 
            fail();
        } catch (IllegalArgumentException ex) {}
        try { 
            DateTimeFormat.forStyle(""); 
Experience pair programming with AI  Get Codota for Java