Examples of toPeriods()


Examples of ch.pollet.jzic.timezone.Rule.toPeriods()

        at.setSecond(0);
        at.setType(DateTime.Type.UTC);

        r.setAt(at);

        periods = r.toPeriods(period);

        assertEquals(10, periods.size());
        assertEquals("__", periods.first().getPeriodName());
        assertEquals(7200, periods.first().getOffset());
        assertFalse(periods.first().isStdOffset());
View Full Code Here

Examples of ch.pollet.jzic.timezone.Rule.toPeriods()

        at.setSecond(0);
        at.setType(DateTime.Type.UTC);

        r.setAt(at);

        periods = r.toPeriods(period);

        assertEquals(10, periods.size());
        assertEquals("__", periods.first().getPeriodName());
        assertEquals(7200, periods.first().getOffset());
        assertFalse(periods.first().isStdOffset());
View Full Code Here

Examples of ch.pollet.jzic.timezone.Rule.toPeriods()

        at.setSecond(0);
        at.setType(DateTime.Type.UTC);

        r.setAt(at);

        periods = r.toPeriods(period);

        assertEquals(11, periods.size());
        assertEquals("__", periods.first().getPeriodName());
        assertEquals(7200, periods.first().getOffset());
        assertFalse(periods.first().isStdOffset());
View Full Code Here

Examples of ch.pollet.jzic.timezone.Rule.toPeriods()

        assertEquals(2010, periods.last().getFrom().getYear().intValue());
        assertEquals(null, periods.first().getTo());
        assertEquals(null, periods.last().getTo());

        r.setOffset(0);
        periods = r.toPeriods(period);
        assertTrue(periods.first().isStdOffset());
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.