Ludilly / time-to-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

  • 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:55 > five to three

About


Languages

Language:JavaScript 100.0%