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;
        f = null;
    } 
 
    //----------------------------------------------------------------------- 
    public void testPrint_simple() { 
        Period p = new Period(1, 2, 3, 4, 5, 6, 7, 8);
        assertEquals("P1Y2M3W4DT5H6M7.008S", f.print(p));
    } 
 
    //----------------------------------------------------------------------- 
Connect your IDE to all the code out there  Get Codota for Java