Added functionality to get the nearest tag (time) to a given timestamp.