public/fullcalendar/timeline/main.esm.js
// Will return `0` if there's not a clean whole interval.
Will return `0` if there's not a clean whole interval.
Will return ` 0 ` if there ' s not a clean whole interval .
function currentRangeAs(unit, dateProfile, dateEnv) {
    var range = dateProfile.currentRange;
    var res = null;
    if (unit === 'years') {
        res = dateEnv.diffWholeYears(range.start, range.end);
    }
    else if (unit === 'months') {
        res = dateEnv.diffWholeMonths(range.start, range.end);
    }
    else if (unit === 'weeks') {
        res = dateEnv.diffWholeMonths(range.start, range.end);
    }
    else if (unit === 'days') {
        res = diffWholeDays(range.start, range.end);
    }
    return res || 0;
}
function currentRangeAs ( unit , dateProfile , dateEnv ) { var range = dateProfile . currentRange ; var res = null ; if ( unit === 'years' ) { res = dateEnv . diffWholeYears ( range . start , range . end ) ; } else if ( unit === 'months' ) { res = dateEnv . diffWholeMonths ( range . start , range . end ) ; } else if ( unit === 'weeks' ) { res = dateEnv . diffWholeMonths ( range . start , range . end ) ; } else if ( unit === 'days' ) { res = diffWholeDays ( range . start , range . end ) ; } return res || 0 ; }
Will return `0` if there's not a clean whole interval.
Will return ` 0 ` if there ' s not a clean whole interval .