weekdays : "日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),
weekdaysShort : "日_月_火_水_木_金_土".split("_"),
longDateFormat : {
- LT : "Ah:mm",
+ LT : "Ah時m分",
L : "YYYY/MM/DD",
LL : "YYYY年M月D日",
- LLL : "YYYY年M月D日 LT",
- LLLL : "YYYY年M月D日 dddd LT"
+ LLL : "YYYY年M月D日LT",
+ LLLL : "YYYY年M月D日LT dddd"
},
meridiem : function (hour, minute, isLower) {
if (hour < 12) {
['t\\he DDDo \\d\\ay of t\\he ye\\ar', 'the 45 day of the year'],
['L', '2010/02/14'],
['LL', '2010年2月14日'],
- ['LLL', '2010年2月14日 午後3:25'],
- ['LLLL', '2010年2月14日 日曜日 午後3:25']
+ ['LLL', '2010年2月14日午後3時25分'],
+ ['LLLL', '2010年2月14日午後3時25分 日曜日']
],
b = moment(new Date(2010, 1, 14, 15, 25, 50, 125)),
i;
var a = moment().hours(2).minutes(0).seconds(0);
- test.equal(moment(a).calendar(), "今日 午前2:00", "today at the same time");
- test.equal(moment(a).add({ m: 25 }).calendar(), "今日 午前2:25", "Now plus 25 min");
- test.equal(moment(a).add({ h: 1 }).calendar(), "今日 午前3:00", "Now plus 1 hour");
- test.equal(moment(a).add({ d: 1 }).calendar(), "明日 午前2:00", "tomorrow at the same time");
- test.equal(moment(a).subtract({ h: 1 }).calendar(), "今日 午前1:00", "Now minus 1 hour");
- test.equal(moment(a).subtract({ d: 1 }).calendar(), "昨日 午前2:00", "yesterday at the same time");
+ test.equal(moment(a).calendar(), "今日 午前2時0分", "today at the same time");
+ test.equal(moment(a).add({ m: 25 }).calendar(), "今日 午前2時25分", "Now plus 25 min");
+ test.equal(moment(a).add({ h: 1 }).calendar(), "今日 午前3時0分", "Now plus 1 hour");
+ test.equal(moment(a).add({ d: 1 }).calendar(), "明日 午前2時0分", "tomorrow at the same time");
+ test.equal(moment(a).subtract({ h: 1 }).calendar(), "今日 午前1時0分", "Now minus 1 hour");
+ test.equal(moment(a).subtract({ d: 1 }).calendar(), "昨日 午前2時0分", "yesterday at the same time");
test.done();
},