Java 类java.time.calendrical.PeriodUnit.PeriodBetween 实例源码

项目:optashift-employee-rostering    文件:ISOWeeks.java   
@Override
public <R extends DateTime> PeriodBetween between(R dateTime1, R dateTime2) {

  long period = Jdk8Methods.safeSubtract(dateTime2.getLong(WEEK_BASED_YEAR), dateTime1.getLong(WEEK_BASED_YEAR));
  return new Between(period, WEEK_BASED_YEARS);
}
项目:gwt-time    文件:ISOWeeks.java   
@Override
public <R extends DateTime> PeriodBetween between(R dateTime1, R dateTime2) {

  long period = Jdk8Methods.safeSubtract(dateTime2.getLong(WEEK_BASED_YEAR), dateTime1.getLong(WEEK_BASED_YEAR));
  return new Between(period, WEEK_BASED_YEARS);
}
项目:java8-backports    文件:ISOWeeks.java   
@Override
public <R extends DateTime> PeriodBetween between(R dateTime1, R dateTime2) {

  long period = Jdk8Methods.safeSubtract(dateTime2.getLong(WEEK_BASED_YEAR), dateTime1.getLong(WEEK_BASED_YEAR));
  return new Between(period, WEEK_BASED_YEARS);
}