Debian Codegraph @

vendor/static/moment/src/lib/units/minute.js

raw
1 import { makeGetSet } from '../moment/get-set';
2 import { addFormatToken } from '../format/format';
3 import {
4 addRegexToken,
5 match1to2,
6 match2,
7 match1to2HasZero,
8 } from '../parse/regex';
9 import { addParseToken } from '../parse/token';
10 import { MINUTE } from './constants';
11
12 // FORMATTING
13
14 addFormatToken('m', ['mm', 2], 0, 'minute');
15
16 // PARSING
17
18 addRegexToken('m', match1to2, match1to2HasZero);
19 addRegexToken('mm', match1to2, match2);
20 addParseToken(['m', 'mm'], MINUTE);
21
22 // MOMENTS
23
24 export var getSetMinute = makeGetSet('Minutes', false);