Sha256: e595754897d59be96bd94028e74920c00c80d9747db66edf52a008301b21a5d2

Contents?: true

Size: 679 Bytes

Versions: 19

Compression:

Stored size: 679 Bytes

Contents

import { makeGetSet } from '../moment/get-set';
import { addFormatToken } from '../format/format';
import { addUnitAlias } from './aliases';
import { addUnitPriority } from './priorities';
import { addRegexToken, match1to2, match2 } from '../parse/regex';
import { addParseToken } from '../parse/token';
import { MINUTE } from './constants';

// FORMATTING

addFormatToken('m', ['mm', 2], 0, 'minute');

// ALIASES

addUnitAlias('minute', 'm');

// PRIORITY

addUnitPriority('minute', 14);

// PARSING

addRegexToken('m', match1to2);
addRegexToken('mm', match1to2, match2);
addParseToken(['m', 'mm'], MINUTE);

// MOMENTS

export var getSetMinute = makeGetSet('Minutes', false);

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
card-mod-date-0.15.6 vendor/moment/src/lib/units/minute.js
card-mod-date-0.15.0 vendor/moment/src/lib/units/minute.js
card-mod-date-0.14.2 vendor/moment/src/lib/units/minute.js
card-mod-date-0.14.1 vendor/moment/src/lib/units/minute.js
card-mod-date-0.14.0 vendor/moment/src/lib/units/minute.js
card-mod-date-0.13.4 vendor/moment/src/lib/units/minute.js
card-mod-date-0.13.3 vendor/moment/src/lib/units/minute.js
card-mod-date-0.13.2 vendor/moment/src/lib/units/minute.js
card-mod-date-0.13.1 vendor/moment/src/lib/units/minute.js
card-mod-date-0.13.0 vendor/moment/src/lib/units/minute.js
card-mod-date-0.11.7 vendor/moment/src/lib/units/minute.js
card-mod-date-0.12.0 vendor/moment/src/lib/units/minute.js
card-mod-date-0.11.6 vendor/moment/src/lib/units/minute.js
card-mod-date-0.11.5 vendor/moment/src/lib/units/minute.js
card-mod-date-0.11.4 vendor/moment/src/lib/units/minute.js
card-mod-date-0.11.3 vendor/moment/src/lib/units/minute.js
card-mod-date-0.11.2 vendor/moment/src/lib/units/minute.js
card-mod-date-0.11.1 vendor/moment/src/lib/units/minute.js
card-mod-date-0.11.0 vendor/moment/src/lib/units/minute.js