MomentJS - Soustraire le temps

Cette méthode soustrayera le temps d'une durée donnée.

Syntaxe

moment.duration().subtract(Number, String);
moment.duration().subtract(Number);
moment.duration().subtract(Duration);
moment.duration().subtract(Object);

Exemple

var d = moment.duration(500, 'days');
var st = moment.duration(500, 'days').subtract({ days: 7, months: 1 });

Production