getTimes function

Get all distinct times for the specified object.