Code example for Time

Methods: parse

0
        // System.out.println("r=" + r); 
    } 
 
    @SmallTest 
    public void testParse0() throws Exception { 
        Time t = new Time(Time.TIMEZONE_UTC);
        t.parse("12345678T901234");
        // System.out.println("t=" + t); 
    } 
 
    @SmallTest 
    public void testSet0() throws Exception { 
        Time t = new Time(Time.TIMEZONE_UTC);
        t.set(1000L);
        // System.out.println("t.year=" + t.year); 
        // System.out.println("t=" + t); 
        t.set(2000L);
        // System.out.println("t=" + t); 
        t.set(1000L * 60);
        // System.out.println("t=" + t); 
        t.set((1000L * 60 * 60 * 24) + 1000L);