dist/ngu-utility.esm.js
function dateGetter(name, size, offset, trim, negWrap) {
    if (offset === void 0) { offset = 0; }
    if (trim === void 0) { trim = false; }
    if (negWrap === void 0) { negWrap = false; }
    return function (date, locale) {
        var /** @type {?} */ part = getDatePart(name, date, size);
        if (offset > 0 || part > -offset) {
            part += offset;
        }
        if (name === DateType.Hours && part === 0 && offset === -12) {
            part = 12;
        }
        return padNumber(part, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign), trim, negWrap);
    };
}
function dateGetter(name, size, offset, trim, negWrap) {
    if (offset === void 0) { offset = 0; }
    if (trim === void 0) { trim = false; }
    if (negWrap === void 0) { negWrap = false; }
    return function (date, locale) {
        var /** @type {?} */ part = getDatePart(name, date, size);
        if (offset > 0 || part > -offset) {
            part += offset;
        }
        if (name === DateType.Hours && part === 0 && offset === -12) {
            part = 12;
        }
        return padNumber(part, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign), trim, negWrap);
    };
}
function dateGetter ( name , size , offset , trim , negWrap ) { if ( offset === void 0 ) { offset = 0 ; } if ( trim === void 0 ) { trim = false ; } if ( negWrap === void 0 ) { negWrap = false ; } return function ( date , locale ) { var /** @type {?} */ part = getDatePart ( name , date , size ) ; if ( offset > 0 || part > - offset ) { part += offset ; } if ( name === DateType . Hours && part === 0 && offset === - 12 ) { part = 12 ; } return padNumber ( part , size , getLocaleNumberSymbol ( locale , NumberSymbol . MinusSign ) , trim , negWrap ) ; } ; }
Returns a date formatter that transforms a date into its locale digit representation
@param {?} name
@param {?} size
@param {?=} offset
@param {?=} trim
@param {?=} negWrap
@return {?}
Returns a date formatter that transforms a date into its locale digit representation