Travis build: 2024 [cron]
This commit is contained in:
@ -1,5 +1,9 @@
|
||||
const getMeridiemSuffixOfInteger = num =>
|
||||
num === 0 || num === 24
|
||||
? 12 + 'am'
|
||||
: num === 12 ? 12 + 'pm' : num < 12 ? num % 12 + 'am' : num % 12 + 'pm';
|
||||
: num === 12
|
||||
? 12 + 'pm'
|
||||
: num < 12
|
||||
? num % 12 + 'am'
|
||||
: num % 12 + 'pm';
|
||||
module.exports = getMeridiemSuffixOfInteger;
|
||||
Reference in New Issue
Block a user