lqq-code / time-to-words

converts time into the corresponding english words

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pair Programming exercise

Write an function that converts time into the corresponding english words - eg. '8:30' -> 'half past eight'

Examples

  • '0:00' > 'midnight'

  • '12:00' > 'midday'

  • '2:00' > 'two o'clock'

  • '2:03' > 'three past two'

  • '2:11' > 'eleven past two'

  • '2:15' > 'quarter past two'

  • '2:30' > 'half past two'

  • '2:33' > 'twenty seven to three'

  • '2:40' > 'twenty to three'

  • '2:45' > 'quarter to three'

  • '2:55' > 'five to three'

time-to-words

About

converts time into the corresponding english words


Languages

Language:JavaScript 100.0%