Sha256: 7a77ff4c98a940839992a6c37141ab2358684f2dbaa6d5e505a79bed45509eba

Contents?: true

Size: 1.78 KB

Versions: 28

Compression:

Stored size: 1.78 KB

Contents

import { Duration } from './constructor';

var proto = Duration.prototype;

import { abs } from './abs';
import { add, subtract } from './add-subtract';
import { as, asMilliseconds, asSeconds, asMinutes, asHours, asDays, asWeeks, asMonths, asYears, valueOf } from './as';
import { bubble } from './bubble';
import { clone } from './clone';
import { get, milliseconds, seconds, minutes, hours, days, months, years, weeks } from './get';
import { humanize } from './humanize';
import { toISOString } from './iso-string';
import { lang, locale, localeData } from '../moment/locale';
import { isValid } from './valid';

proto.isValid        = isValid;
proto.abs            = abs;
proto.add            = add;
proto.subtract       = subtract;
proto.as             = as;
proto.asMilliseconds = asMilliseconds;
proto.asSeconds      = asSeconds;
proto.asMinutes      = asMinutes;
proto.asHours        = asHours;
proto.asDays         = asDays;
proto.asWeeks        = asWeeks;
proto.asMonths       = asMonths;
proto.asYears        = asYears;
proto.valueOf        = valueOf;
proto._bubble        = bubble;
proto.clone          = clone;
proto.get            = get;
proto.milliseconds   = milliseconds;
proto.seconds        = seconds;
proto.minutes        = minutes;
proto.hours          = hours;
proto.days           = days;
proto.weeks          = weeks;
proto.months         = months;
proto.years          = years;
proto.humanize       = humanize;
proto.toISOString    = toISOString;
proto.toString       = toISOString;
proto.toJSON         = toISOString;
proto.locale         = locale;
proto.localeData     = localeData;

// Deprecations
import { deprecate } from '../utils/deprecate';

proto.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString);
proto.lang = lang;

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
card-1.100.0 mod/date/vendor/moment/src/lib/duration/prototype.js
card-1.99.6 mod/date/vendor/moment/src/lib/duration/prototype.js
card-1.99.5 mod/date/vendor/moment/src/lib/duration/prototype.js
card-1.99.4 mod/date/vendor/moment/src/lib/duration/prototype.js
card-1.99.3 mod/date/vendor/moment/src/lib/duration/prototype.js
card-1.99.2 mod/date/vendor/moment/src/lib/duration/prototype.js
card-1.99.1 mod/date/vendor/moment/src/lib/duration/prototype.js
card-1.99.0 mod/date/vendor/moment/src/lib/duration/prototype.js
card-1.98.3 mod/date/vendor/moment/src/lib/duration/prototype.js
card-1.98.2 mod/date/vendor/moment/src/lib/duration/prototype.js
card-1.98.1 mod/date/vendor/moment/src/lib/duration/prototype.js
card-1.98.0 mod/date/vendor/moment/src/lib/duration/prototype.js
card-1.97.0.1 mod/date/vendor/moment/src/lib/duration/prototype.js
card-1.97.0 mod/date/vendor/moment/src/lib/duration/prototype.js
card-1.96.8 mod/date/vendor/moment/src/lib/duration/prototype.js
card-1.96.7 mod/date/vendor/moment/src/lib/duration/prototype.js
card-1.96.6 mod/date/vendor/moment/src/lib/duration/prototype.js
card-1.96.5 mod/date/vendor/moment/src/lib/duration/prototype.js
card-1.96.4 mod/date/vendor/moment/src/lib/duration/prototype.js
card-1.96.3 mod/date/vendor/moment/src/lib/duration/prototype.js