Examples of lengthOfMonth()


Examples of org.threeten.bp.LocalDate.lengthOfMonth()

      if (d1.getYear() == forward[i - 1].getYear()) {
        assertEquals(d1.getMonthValue() - forward[i - 1].getMonthValue(), 1);
      } else {
        assertEquals(d1.getMonthValue() - forward[i - 1].getMonthValue(), -11);
      }
      assertEquals(d1.getDayOfMonth(), d1.lengthOfMonth());
    }
    assertArrayEquals(CALCULATOR.getSchedule(startDate, endDate, true, false), forward);
    assertArrayEquals(CALCULATOR.getSchedule(startDate, endDate, true, true), forward);
    assertArrayEquals(CALCULATOR.getSchedule(startDate, endDate, false, false), forward);
    assertArrayEquals(CALCULATOR.getSchedule(startDate, endDate, false, true), forward);
View Full Code Here

Examples of org.threeten.bp.YearMonth.lengthOfMonth()

    // lengthOfMonth()
    //-----------------------------------------------------------------------
    @Test
    public void test_lengthOfMonth_june() {
        YearMonth test = YearMonth.of(2007, 6);
        assertEquals(test.lengthOfMonth(), 30);
    }

    @Test
    public void test_lengthOfMonth_febNonLeap() {
        YearMonth test = YearMonth.of(2007, 2);
View Full Code Here

Examples of org.threeten.bp.YearMonth.lengthOfMonth()

    }

    @Test
    public void test_lengthOfMonth_febNonLeap() {
        YearMonth test = YearMonth.of(2007, 2);
        assertEquals(test.lengthOfMonth(), 28);
    }

    @Test
    public void test_lengthOfMonth_febLeap() {
        YearMonth test = YearMonth.of(2008, 2);
View Full Code Here

Examples of org.threeten.bp.YearMonth.lengthOfMonth()

    }

    @Test
    public void test_lengthOfMonth_febLeap() {
        YearMonth test = YearMonth.of(2008, 2);
        assertEquals(test.lengthOfMonth(), 29);
    }

    //-----------------------------------------------------------------------
    // lengthOfYear()
    //-----------------------------------------------------------------------
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.