When you check the dialog log, you can see that your interactions with npcs have an ingame date and time connected to them. I haven't payed much attention to when the characters talk about resting, but I'd guess it happens when it's evening ingame.