considering minutes and seconds while retrieving events