cur_time function

Get current time (in hh:mm or hh:mm:ss format)