10 hours is a long period of time for a newborn to stay up. It's recommended that you get the baby to sleep after staying up for 45-60 minutes maximum. Create an environment that will help get him/her to sleep like dimming the lights, rock him/her to sleep and make sure that he/she is well fed, you can try sleeping next to the baby to offer comfort