Code example for Time

Methods: set, toMillis

0
        assertEquals(-1, t.isDst);
    } 
 
    @Test 
    public void shouldHaveToMillis() throws Exception { 
        Time t = new Time();
        t.set(86400 * 1000);
        assertEquals(86400 * 1000, t.toMillis(false));
    } 
 
    @Test 
    public void shouldHaveCurrentTimeZone() throws Exception { 
        assertNotNull(Time.getCurrentTimezone());
    } 
 
    @Test 
    public void shouldHaveCompareAndBeforeAfter() throws Exception { 
        Time a = new Time();
        Time b = new Time();
        assertEquals(0, Time.compare(a, b));
        assertFalse(a.before(b));