1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
| 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,
| asQuarters,
| 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.asQuarters = asQuarters;
| 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;
|
|