Brought in another asset for Ray's eye form: moment
[openemr.git] / public / assets / moment-2-13-0 / src / lib / units / minute.js
blobe9473b86336d711014d22047c05ab3598c5c6b93
1 import { makeGetSet } from '../moment/get-set';
2 import { addFormatToken } from '../format/format';
3 import { addUnitAlias } from './aliases';
4 import { addRegexToken, match1to2, match2 } from '../parse/regex';
5 import { addParseToken } from '../parse/token';
6 import { MINUTE } from './constants';
8 // FORMATTING
10 addFormatToken('m', ['mm', 2], 0, 'minute');
12 // ALIASES
14 addUnitAlias('minute', 'm');
16 // PARSING
18 addRegexToken('m',  match1to2);
19 addRegexToken('mm', match1to2, match2);
20 addParseToken(['m', 'mm'], MINUTE);
22 // MOMENTS
24 export var getSetMinute = makeGetSet('Minutes', false);