Code example for Time

Methods: parse

0
        assertTrue(a.before(b));
    } 
 
    @Test 
    public void shouldHaveParse() throws Exception { 
        Time t = new Time("Europe/Berlin");
        assertFalse(t.parse("20081013T160000"));
        assertEquals(2008, t.year);
        assertEquals(9, t.month);
        assertEquals(13, t.monthDay);
        assertEquals(16, t.hour);
        assertEquals(0, t.minute);
        assertEquals(0, t.second);
 
        assertTrue(t.parse("20081013T160000Z"));
        assertEquals(2008, t.year);
        assertEquals(9, t.month);
        assertEquals(13, t.monthDay);
        assertEquals(16, t.hour);
        assertEquals(0, t.minute);
Connect your IDE to all the code out there  Get Codota for Java