/** * Gets the period type, which is <code>days</code>. * * @return the period type */ public PeriodType getPeriodType() { return PeriodType.days(); }
/** * Gets the period type, which is <code>days</code>. * * @return the period type */ public PeriodType getPeriodType() { return PeriodType.days(); }
/** * Gets the period type, which is <code>days</code>. * * @return the period type */ public PeriodType getPeriodType() { return PeriodType.days(); }
/** * Gets the period type, which is <code>days</code>. * * @return the period type */ public PeriodType getPeriodType() { return PeriodType.days(); }
/** * Gets the period type, which is <code>days</code>. * * @return the period type */ public PeriodType getPeriodType() { return PeriodType.days(); }
/** * Gets the period type, which is <code>days</code>. * * @return the period type */ public PeriodType getPeriodType() { return PeriodType.days(); }
/** * Gets the period type, which is <code>days</code>. * * @return the period type */ public PeriodType getPeriodType() { return PeriodType.days(); }
/** * Gets the period type, which is <code>days</code>. * * @return the period type */ public PeriodType getPeriodType() { return PeriodType.days(); }
/** * Gets the period type, which is <code>days</code>. * * @return the period type */ public PeriodType getPeriodType() { return PeriodType.days(); }
/** * Gets the period type, which is <code>days</code>. * * @return the period type */ public PeriodType getPeriodType() { return PeriodType.days(); }
/** * Gets the period type, which is <code>days</code>. * * @return the period type */ public PeriodType getPeriodType() { return PeriodType.days(); }
public DateMidnightIterator(DateTime start, DateTime end) { this(start, end, 0, new Period(start, end, PeriodType.days()).getDays() + 1); }
public DateMidnightIterator(DateTime start, DateTime end) { this(start, end, 0, new Period(start, end, PeriodType.days()).getDays() + 1); }
/** * The duration in days * * @return */ public int days() { if (isInfinite()) { return 0; } Period p = new Period(asInterval(), PeriodType.days()); return p.getDays(); }
@Override int getDuration(DateTime now, DateTime expiryDate) { Interval interval = new Interval(now.withSecondOfMinute(0).withMillisOfSecond(0), expiryDate); return interval.toPeriod(PeriodType.days()).getDays(); }
@Override int getDuration(DateTime now, DateTime expiryDate) { Interval interval = new Interval(now.withSecondOfMinute(0).withMillisOfSecond(0), expiryDate); return interval.toPeriod(PeriodType.days()).getDays(); }
@Override public Period random() { return new Period(RandomData.randomLong(0, 1000), RandomData.random( Arrays.asList( PeriodType.millis(), PeriodType.seconds(), PeriodType.minutes(), PeriodType.hours(), PeriodType.days(), PeriodType.weeks(), PeriodType.months(), PeriodType.years() ))); }