time_t DateRangeDaily::secIn( const DateRange & dateTwo ) const { return( UnionOfDur( getTimeT(), dur, dateTwo.getSecOfDay(), dateTwo.getDur(), getFrequency() ) ); }
int DateRangeDaily::compare( const DateRange & two ) const { int diff = ::compare( getStart(), two.getSecOfDay() ); if( diff ) return( diff ); else return( ::compare( getDur(), two.getDur() ) ); }
time_t DateRangeDaily::startsIn( const DateRange & dateTwo ) const { time_t secs = 0; if( dateTwo.getSecOfDay() >= getTimeT() && dateTwo.getSecOfDay() <= getTimeT() + dur ) { secs = secIn( dateTwo ); } return( secs ); }