Hi All,

In my current project i need to write a generalized function(java/javascript) to print the given time
say 00:00 - Midnight
00:05 - Midnight past 5 mins
00:01 is "just after midnight"
23:45 is "a quarter to midnight"

I am just above the starter level in java programming

Any help much appreciated