Lines Matching refs:unit
7621 function addUnitAlias (unit, shorthand) {
7622 var lowerCase = unit.toLowerCase();
7623 aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
7649 function addUnitPriority(unit, priority) {
7650 priorities[unit] = priority;
7656 units.push({unit: u, priority: priorities[u]});
7664 function makeGetSet (unit, keepTime) {
7667 set$1(this, unit, value);
7671 return get(this, unit);
7676 function get (mom, unit) {
7678 mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
7681 function set$1 (mom, unit, value) {
7683 mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
7703 this[prioritized[i].unit](units[prioritized[i].unit]);