when I do
someMoment.add(30, 'minutes')
I don't seem to get any result.
console.log(start); -- Moment {_isAMomentObject: true, _i: "6:30 PM", _f: "h:mm A", _isUTC: false, _pf: Object…}
console.log(start.add(inc, 'minutes')); --Moment {_isAMomentObject: true, _i: "6:30 PM", _f: "h:mm A", _isUTC: false, _pf: Object…}
The docs say that add mutates the specified moment, so the above should work but I've also tried
var end = start.add(inc, 'minutes')
console.log(end); --Moment {_isAMomentObject: true, _i: "6:30 PM", _f: "h:mm A", _isUTC: false, _pf: Object…}
what I can do though is this
console.log(start.add(inc, 'minutes').format("h:mm A")); --7:00 PM
What I want is to take a moment, add 30 minutes to it and, preferably have a new moment that is 30 minutes ahead, or at least have the initial moment be 30 minutes ahead.
I know I can take the format out put and put it in a new moment, and I guess I will but this seems kind of broken.
Thanks, R
