There's a few options for the time of day. First, you can use the
time command. With it you can determine how much time has passed since the beginning, and with it I'm sure you'll be able to figure out how to detect 0400 hours.
I didn't use this for a mission that was just for testing and developing my skills, I made my own time script which I ran from the init.sqs and gave the mission time, hours/minutes/seconds as the test mission required a lot of coordination (bus traffic, police traffic etc.).
If you want I could send it to you, but I think that it's too much for your purpose.
About the tent, you can create it by using this line:
tent = "CampEast" createVehicle [0,0,0];
A fire:
fire = "Fire" createVehicle [0,0,0];
After creation you want it two metres in front of the player, you should use
getDir and
getPos together with a bit of maths to place them two metres in front of the player. Possible setting the direction of the tent with
setDir. If you can't make it on your own, just ask for help and I or someone else will help you. But you learn the best by trial and error, so I'd say try it yourself if it doesn't work or you run into problems ask for help.