src/constraint/minute.js
function(d, val) {
    var m = later.m.val(d),
        s = later.s.val(d),
        inc = val > 59 ? 60-m : (val <= m ? (60-m) + val : val-m),
        next = new Date(d.getTime() + (inc * later.MIN) - (s * later.SEC));

    // correct for passing over a daylight savings boundry
    if(!later.date.isUTC && next.getTime() <= d.getTime()) {
      next = new Date(d.getTime() + ((inc + 120) * later.MIN) - (s * later.SEC));
    }

    return next;
  }
function(d, val) {
    var m = later.m.val(d),
        s = later.s.val(d),
        inc = val > 59 ? 60-m : (val <= m ? (60-m) + val : val-m),
        next = new Date(d.getTime() + (inc * later.MIN) - (s * later.SEC));

    // correct for passing over a daylight savings boundry
    if(!later.date.isUTC && next.getTime() <= d.getTime()) {
      next = new Date(d.getTime() + ((inc + 120) * later.MIN) - (s * later.SEC));
    }

    return next;
  }
function ( d , val ) { var m = later . m . val ( d ) , s = later . s . val ( d ) , inc = val > 59 ? 60 - m : ( val <= m ? ( 60 - m ) + val : val - m ) , next = new Date ( d . getTime ( ) + ( inc * later . MIN ) - ( s * later . SEC ) ) ; // correct for passing over a daylight savings boundry if ( ! later . date . isUTC && next . getTime ( ) <= d . getTime ( ) ) { next = new Date ( d . getTime ( ) + ( ( inc + 120 ) * later . MIN ) - ( s * later . SEC ) ) ; } return next ; }
Returns the start of the next instance of the minute value indicated.

@param {Date} d: The starting date
@param {int} val: The desired value, must be within extent
Returns the start of the next instance of the minute value indicated .