Clone2.19.0+

  1. moment.duration().clone();

Create a clone of a duration. Durations are mutable, just like moment objects,so this lets you get a snapshot, at some point in time.

  1. var d1 = moment.duration();
  2. var d2 = d1.clone();
  3. d1.add(1, 'second');
  4. d1.asMilliseconds() !== d2.asMilliseconds();