Example of retrieving encounter time