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 testTest() { 
        assertEquals("2002-06-09T00:00:00.000Z", new Instant(TEST_TIME_NOW).toString()); 
        assertEquals("2002-04-05T12:24:00.000Z", new Instant(TEST_TIME1).toString()); 
        assertEquals("2003-05-06T14:28:00.000Z", new Instant(TEST_TIME2).toString()); 
    } 
 
    //----------------------------------------------------------------------- 
Connect your IDE to all the code out there  Get Codota for Java