Updated getTime method to return a time in 24 hour clock format(e.g.
1400 = 2pm