Skip to content

Commit

Permalink
PM and AM in dutch
Browse files Browse the repository at this point in the history
See https://nl.wikipedia.org/wiki/12-uursnotatie which states 

"In het Nederlands spreekt men ook van voormiddag en namiddag (v.m. en n.m. of vm en nm)."  which means "In Dutch people also speak of morning (voormiddag)  and afternoon (namiddag) (v.m. and n.m. or vm and pm)."
  • Loading branch information
reyostallenberg committed Aug 24, 2023
1 parent 000ac18 commit d2dc940
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions locale/nl.js
Expand Up @@ -63,6 +63,13 @@
weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
weekdaysParseExact: true,
meridiemParse: /vm|nm/,
isPM: function (input) {
return input.charAt(0) === 'n';
},
meridiem: function (hours, minutes, isLower) {
return hours < 12 ? 'vm' : 'nm';
},
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
Expand Down

0 comments on commit d2dc940

Please sign in to comment.