Time in words

Given time in the form of an integer (12 hour format), you have to return the equivalent time in words.

Input format : 2 integers representing hour & minutes separated by space

Output format : return the string equivalent to the given time (all characters must be in lower case)

Sample Input 1 :
5 15 
Sample Output 1 :
fifteen minutes past five
Sample Input 2 :
5 45
Sample Output 2 :
fifteen minutes to six

Login to submit your solution

Fb dab53a1a64929320dc7425896aa73fd9e5512b6ab52e414ff5f3ebb5cecc73eb

Share Problem