Travis build: 2024 [cron]

This commit is contained in:
30secondsofcode
2018-05-02 21:04:11 +00:00
parent 38f82c678f
commit b75eb64595
6 changed files with 118 additions and 53 deletions

View File

@ -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;