Sha256: 7dc1c70b5976ee5737260af96c30cac259ef72fbdbe602a5263a4147d8da437e

Contents?: true

Size: 566 Bytes

Versions: 9

Compression:

Stored size: 566 Bytes

Contents

export var defaultLongDateFormat = {
    LTS  : 'h:mm:ss A',
    LT   : 'h:mm A',
    L    : 'MM/DD/YYYY',
    LL   : 'MMMM D, YYYY',
    LLL  : 'MMMM D, YYYY LT',
    LLLL : 'dddd, MMMM D, YYYY LT'
};

export function longDateFormat (key) {
    var output = this._longDateFormat[key];
    if (!output && this._longDateFormat[key.toUpperCase()]) {
        output = this._longDateFormat[key.toUpperCase()].replace(/MMMM|MM|DD|dddd/g, function (val) {
            return val.slice(1);
        });
        this._longDateFormat[key] = output;
    }
    return output;
}

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
sedge_cms-0.0.1 vendor/assets/components/moment/src/lib/locale/formats.js
date_picker-0.0.6 test/dummy/vendor/assets/components/moment/src/lib/locale/formats.js
date_picker-0.0.5 test/dummy/vendor/assets/components/moment/src/lib/locale/formats.js
date_picker-0.0.4 test/dummy/vendor/assets/components/moment/src/lib/locale/formats.js
date_picker-0.0.3 test/dummy/vendor/assets/components/moment/src/lib/locale/formats.js
date_picker-0.0.2 test/dummy/vendor/assets/components/moment/src/lib/locale/formats.js
date_picker-0.0.1 test/dummy/vendor/assets/components/moment/src/lib/locale/formats.js
puppet-herald-0.8.1 lib/puppet-herald/public/bower_components/moment/src/lib/locale/formats.js
puppet-herald-0.8.0 lib/puppet-herald/public/bower_components/moment/src/lib/locale/formats.js