A PC can take a Shallow Rest in either a safe and comfortable environment like a city, in which case it will take 2 hours, or when safe in a dangerous and uncomfortable environment, in which case the PC spend 8 hours to do so and must remain safe for that time to gain the benefit.
When a character takes a shallow rest, they may do the following things: