Add `is12Hour` function to locale

master
Anton 2024-08-15 17:14:17 +02:00
parent 10b2e9e8dd
commit 332d3ca336
1 changed files with 1 additions and 0 deletions

View File

@ -241,6 +241,7 @@ exports = {
date: (d,short) => short ? \`${dateS}\` : \`${dateN}\`,
time: (d,short) => short ? \`${timeS}\` : \`${timeN}\`,
meridian: d => is12Hours() ? d.getHours() < 12 ? ${js(locale.ampm[0])}:${js(locale.ampm[1])} : "",
is12Hours,
};
`.trim()
};