Java Code Examples for java.time.chrono.MinguoDate#until()
The following examples show how to use
java.time.chrono.MinguoDate#until() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TCKMinguoChronology.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Test public void test_periodUntilUnit() { MinguoDate mdate1 = MinguoDate.of(1970, 1, 1); MinguoDate mdate2 = MinguoDate.of(1971, 2, 2); long months = mdate1.until(mdate2, ChronoUnit.MONTHS); assertEquals(months, 13); }
Example 2
Source File: TCKMinguoChronology.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@Test public void test_periodUntilDiffChrono() { MinguoDate mdate1 = MinguoDate.of(1970, 1, 1); MinguoDate mdate2 = MinguoDate.of(1971, 2, 2); ThaiBuddhistDate ldate2 = ThaiBuddhistChronology.INSTANCE.date(mdate2); ChronoPeriod period = mdate1.until(ldate2); assertEquals(period, MinguoChronology.INSTANCE.period(1, 1, 1)); }
Example 3
Source File: TCKMinguoChronology.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Test public void test_periodUntilDate() { MinguoDate mdate1 = MinguoDate.of(1970, 1, 1); MinguoDate mdate2 = MinguoDate.of(1971, 2, 2); ChronoPeriod period = mdate1.until(mdate2); assertEquals(period, MinguoChronology.INSTANCE.period(1, 1, 1)); }
Example 4
Source File: TCKMinguoChronology.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Test public void test_periodUntilDiffChrono() { MinguoDate mdate1 = MinguoDate.of(1970, 1, 1); MinguoDate mdate2 = MinguoDate.of(1971, 2, 2); ThaiBuddhistDate ldate2 = ThaiBuddhistChronology.INSTANCE.date(mdate2); ChronoPeriod period = mdate1.until(ldate2); assertEquals(period, MinguoChronology.INSTANCE.period(1, 1, 1)); }
Example 5
Source File: TCKMinguoChronology.java From hottub with GNU General Public License v2.0 | 5 votes |
@Test public void test_periodUntilDiffChrono() { MinguoDate mdate1 = MinguoDate.of(1970, 1, 1); MinguoDate mdate2 = MinguoDate.of(1971, 2, 2); ThaiBuddhistDate ldate2 = ThaiBuddhistChronology.INSTANCE.date(mdate2); ChronoPeriod period = mdate1.until(ldate2); assertEquals(period, MinguoChronology.INSTANCE.period(1, 1, 1)); }
Example 6
Source File: TCKMinguoChronology.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Test public void test_periodUntilDiffChrono() { MinguoDate mdate1 = MinguoDate.of(1970, 1, 1); MinguoDate mdate2 = MinguoDate.of(1971, 2, 2); ThaiBuddhistDate ldate2 = ThaiBuddhistChronology.INSTANCE.date(mdate2); ChronoPeriod period = mdate1.until(ldate2); assertEquals(period, MinguoChronology.INSTANCE.period(1, 1, 1)); }
Example 7
Source File: TCKMinguoChronology.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Test public void test_periodUntilDiffChrono() { MinguoDate mdate1 = MinguoDate.of(1970, 1, 1); MinguoDate mdate2 = MinguoDate.of(1971, 2, 2); ThaiBuddhistDate ldate2 = ThaiBuddhistChronology.INSTANCE.date(mdate2); ChronoPeriod period = mdate1.until(ldate2); assertEquals(period, MinguoChronology.INSTANCE.period(1, 1, 1)); }
Example 8
Source File: TCKMinguoChronology.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@Test public void test_periodUntilDate() { MinguoDate mdate1 = MinguoDate.of(1970, 1, 1); MinguoDate mdate2 = MinguoDate.of(1971, 2, 2); ChronoPeriod period = mdate1.until(mdate2); assertEquals(period, MinguoChronology.INSTANCE.period(1, 1, 1)); }
Example 9
Source File: TCKMinguoChronology.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Test public void test_periodUntilDate() { MinguoDate mdate1 = MinguoDate.of(1970, 1, 1); MinguoDate mdate2 = MinguoDate.of(1971, 2, 2); ChronoPeriod period = mdate1.until(mdate2); assertEquals(period, MinguoChronology.INSTANCE.period(1, 1, 1)); }
Example 10
Source File: TCKMinguoChronology.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Test public void test_periodUntilUnit() { MinguoDate mdate1 = MinguoDate.of(1970, 1, 1); MinguoDate mdate2 = MinguoDate.of(1971, 2, 2); long months = mdate1.until(mdate2, ChronoUnit.MONTHS); assertEquals(months, 13); }
Example 11
Source File: TCKMinguoChronology.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
@Test public void test_periodUntilDate() { MinguoDate mdate1 = MinguoDate.of(1970, 1, 1); MinguoDate mdate2 = MinguoDate.of(1971, 2, 2); ChronoPeriod period = mdate1.until(mdate2); assertEquals(period, MinguoChronology.INSTANCE.period(1, 1, 1)); }
Example 12
Source File: TCKMinguoChronology.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Test public void test_periodUntilDiffChrono() { MinguoDate mdate1 = MinguoDate.of(1970, 1, 1); MinguoDate mdate2 = MinguoDate.of(1971, 2, 2); ThaiBuddhistDate ldate2 = ThaiBuddhistChronology.INSTANCE.date(mdate2); ChronoPeriod period = mdate1.until(ldate2); assertEquals(period, MinguoChronology.INSTANCE.period(1, 1, 1)); }
Example 13
Source File: TCKMinguoChronology.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Test public void test_periodUntilDiffChrono() { MinguoDate mdate1 = MinguoDate.of(1970, 1, 1); MinguoDate mdate2 = MinguoDate.of(1971, 2, 2); ThaiBuddhistDate ldate2 = ThaiBuddhistChronology.INSTANCE.date(mdate2); ChronoPeriod period = mdate1.until(ldate2); assertEquals(period, MinguoChronology.INSTANCE.period(1, 1, 1)); }
Example 14
Source File: TCKMinguoChronology.java From hottub with GNU General Public License v2.0 | 5 votes |
@Test public void test_periodUntilDate() { MinguoDate mdate1 = MinguoDate.of(1970, 1, 1); MinguoDate mdate2 = MinguoDate.of(1971, 2, 2); ChronoPeriod period = mdate1.until(mdate2); assertEquals(period, MinguoChronology.INSTANCE.period(1, 1, 1)); }
Example 15
Source File: TCKMinguoChronology.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@Test public void test_periodUntilDiffChrono() { MinguoDate mdate1 = MinguoDate.of(1970, 1, 1); MinguoDate mdate2 = MinguoDate.of(1971, 2, 2); ThaiBuddhistDate ldate2 = ThaiBuddhistChronology.INSTANCE.date(mdate2); ChronoPeriod period = mdate1.until(ldate2); assertEquals(period, MinguoChronology.INSTANCE.period(1, 1, 1)); }
Example 16
Source File: TCKMinguoChronology.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
@Test public void test_periodUntilUnit() { MinguoDate mdate1 = MinguoDate.of(1970, 1, 1); MinguoDate mdate2 = MinguoDate.of(1971, 2, 2); long months = mdate1.until(mdate2, ChronoUnit.MONTHS); assertEquals(months, 13); }
Example 17
Source File: TCKMinguoChronology.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Test public void test_periodUntilDate() { MinguoDate mdate1 = MinguoDate.of(1970, 1, 1); MinguoDate mdate2 = MinguoDate.of(1971, 2, 2); ChronoPeriod period = mdate1.until(mdate2); assertEquals(period, MinguoChronology.INSTANCE.period(1, 1, 1)); }
Example 18
Source File: TCKMinguoChronology.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Test public void test_periodUntilDate() { MinguoDate mdate1 = MinguoDate.of(1970, 1, 1); MinguoDate mdate2 = MinguoDate.of(1971, 2, 2); ChronoPeriod period = mdate1.until(mdate2); assertEquals(period, MinguoChronology.INSTANCE.period(1, 1, 1)); }
Example 19
Source File: TCKMinguoChronology.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Test public void test_periodUntilUnit() { MinguoDate mdate1 = MinguoDate.of(1970, 1, 1); MinguoDate mdate2 = MinguoDate.of(1971, 2, 2); long months = mdate1.until(mdate2, ChronoUnit.MONTHS); assertEquals(months, 13); }
Example 20
Source File: TCKMinguoChronology.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
@Test public void test_periodUntilUnit() { MinguoDate mdate1 = MinguoDate.of(1970, 1, 1); MinguoDate mdate2 = MinguoDate.of(1971, 2, 2); long months = mdate1.until(mdate2, ChronoUnit.MONTHS); assertEquals(months, 13); }