Technical Interview Question #1

Interview Series

I need you to build a fuzzy clock. When asked by others, "What time is it?" do you answer precisely, "7:34 AM"? I don’t. Many would instead answer, "About seven-thirty". Write the code necessary to provide the fuzzy clock response. Consider a few of the valid responses to be, "quarter-past", "half-past", "quarter-till", "about N-o’clock", etc. Be creative.

Write a function which returns a string with the properly formatted current fuzzy time. Your function is provided the current Date and Time (in the appropriate format for your environment and language choice).

One Comment

Comments are closed.