Code example for Time

Methods: clear, setToNow

0
        assertEquals(t.timezone, "UTC");
    } 
 
    @Test 
    public void shouldClear() throws Exception { 
        Time t = new Time();
        t.setToNow();
        t.clear("UTC");
        assertEquals("UTC", t.timezone);
        assertEquals(0, t.year);
        assertEquals(0, t.month);
        assertEquals(0, t.monthDay);
        assertEquals(0, t.hour);
        assertEquals(0, t.minute);
        assertEquals(0, t.second);
        assertEquals(0, t.weekDay);
        assertEquals(0, t.yearDay);
        assertEquals(0, t.gmtoff);
        assertEquals(-1, t.isDst);
    }