aboutsummaryrefslogtreecommitdiffstats
path: root/bower_components/moment/src/lib/units/quarter.js
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2021-02-03 19:17:50 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2021-02-03 19:17:50 -0500
commit475d074fd74425efbe783fad08f97f2df0c4909f (patch)
tree2acdae53999b3c74b716efa4edb5b40311fa356a /bower_components/moment/src/lib/units/quarter.js
parentcd502d52787f666fff3254d7d7e7578930c813c2 (diff)
parent3a0d66f07b112b6d2bdc2b57bbf717a89a351ce6 (diff)
Update upstream source from tag 'upstream/8.1.2'
Update to upstream version '8.1.2' with Debian dir e5e966a9e6010ef70618dc9a61558fa4db35aceb
Diffstat (limited to 'bower_components/moment/src/lib/units/quarter.js')
-rw-r--r--bower_components/moment/src/lib/units/quarter.js27
1 files changed, 0 insertions, 27 deletions
diff --git a/bower_components/moment/src/lib/units/quarter.js b/bower_components/moment/src/lib/units/quarter.js
deleted file mode 100644
index d383f56..0000000
--- a/bower_components/moment/src/lib/units/quarter.js
+++ /dev/null
@@ -1,27 +0,0 @@
-import { addFormatToken } from '../format/format';
-import { addUnitAlias } from './aliases';
-import { addRegexToken, match1 } from '../parse/regex';
-import { addParseToken } from '../parse/token';
-import { MONTH } from './constants';
-import toInt from '../utils/to-int';
-
-// FORMATTING
-
-addFormatToken('Q', 0, 0, 'quarter');
-
-// ALIASES
-
-addUnitAlias('quarter', 'Q');
-
-// PARSING
-
-addRegexToken('Q', match1);
-addParseToken('Q', function (input, array) {
- array[MONTH] = (toInt(input) - 1) * 3;
-});
-
-// MOMENTS
-
-export function getSetQuarter (input) {
- return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
-}