Sha256: 0ea60bdceb58259d0e288e9539a7adcdd22b10a5a0acd08ae0ce5790492c4170

Contents?: true

Size: 442 Bytes

Versions: 19

Compression:

Stored size: 442 Bytes

Contents

export var defaultCalendar = {
    sameDay: '[Today at] LT',
    nextDay: '[Tomorrow at] LT',
    nextWeek: 'dddd [at] LT',
    lastDay: '[Yesterday at] LT',
    lastWeek: '[Last] dddd [at] LT',
    sameElse: 'L',
};

import isFunction from '../utils/is-function';

export function calendar(key, mom, now) {
    var output = this._calendar[key] || this._calendar['sameElse'];
    return isFunction(output) ? output.call(mom, now) : output;
}

Version data entries

19 entries across 19 versions & 1 rubygems

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