OWL ITS + 탐지시스템(인터넷 진흥원)
박지현
2022-02-09 4e8908de38e0c64a20547dd892dca1d1f9f1bc63
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}