Travis build: 1510 [cron]

This commit is contained in:
30secondsofcode
2018-02-02 20:17:05 +00:00
parent ef346fcc91
commit 2cbc41ddeb
10 changed files with 71 additions and 8 deletions

View File

@ -0,0 +1,5 @@
const getMeridiemSuffixOfInteger = num =>
num === 0 || num === 24
? 12 + 'am'
: num === 12 ? 12 + 'pm' : num < 12 ? num % 12 + 'am' : num % 12 + 'pm';
module.exports = getMeridiemSuffixOfInteger