For iphone music can i set sleep time to cut off my music?

I need to set sleep time so that my iphone battery will not drain off when I sleep with my music on. Can this also apply to local radio stations apps

Yup. Go to clock > timer > set the timer for how long you want your music to play for > when timer ends > and press stop playing.
Super easy good luck