LLL : "YYYY. MMMM D., LT",
LLLL : "YYYY. MMMM D., dddd LT"
},
+ meridiem : function (hours, minutes, isLower) {
+ if (hours < 12) {
+ return isLower === true ? 'de' : 'DE';
+ } else {
+ return isLower === true ? 'du' : 'DU';
+ }
+ },
calendar : {
sameDay : '[ma] LT[-kor]',
nextDay : '[holnap] LT[-kor]',
test.done();
},
+ "meridiem" : function (test) {
+ test.expect(8);
+
+ test.equal(moment([2011, 2, 23, 0, 0]).format('a'), "de", "am");
+ test.equal(moment([2011, 2, 23, 11, 59]).format('a'), "de", "am");
+ test.equal(moment([2011, 2, 23, 12, 0]).format('a'), "du", "pm");
+ test.equal(moment([2011, 2, 23, 23, 59]).format('a'), "du", "pm");
+
+ test.equal(moment([2011, 2, 23, 0, 0]).format('A'), "DE", "AM");
+ test.equal(moment([2011, 2, 23, 11, 59]).format('A'), "DE", "AM");
+ test.equal(moment([2011, 2, 23, 12, 0]).format('A'), "DU", "PM");
+ test.equal(moment([2011, 2, 23, 23, 59]).format('A'), "DU", "PM");
+
+ test.done();
+ },
+
"format ordinal" : function (test) {
test.expect(31);
test.done();
},
-
+
"returns the name of the language" : function (test) {
if (typeof module !== 'undefined' && module.exports) {
test.equal(require('../../lang/hu'), 'hu', "module should export hu");
}
-
+
test.done();
}
};