Added getTime function

Gets the current time and converts it into hh:mm am/pm.