date.js 134 Bytes
Newer Older
YazhouChen's avatar
YazhouChen committed
1 2 3 4 5 6
export default function(a, b) {
  var d = new Date;
  return a = +a, b -= a, function(t) {
    return d.setTime(a + b * t), d;
  };
}