How the brain encodes time and place