Add Time
Returns a cloned duration object with a specified amount of time added.
var a = dayjs.duration(1, 'd');
var b = dayjs.duration(2, 'd');
a.add(b).days(); // 3
a.add({ days: 2 } ).days();
a.add(2, 'days');
Returns a cloned duration object with a specified amount of time added.
var a = dayjs.duration(1, 'd');
var b = dayjs.duration(2, 'd');
a.add(b).days(); // 3
a.add({ days: 2 } ).days();
a.add(2, 'days');