Hi and welcome to the forums.
Your idea has been suggested before, please follow the link below to get there. Support the idea by giving kudos. Even thoughg the idea is maked "not right now", more kudos will give it more focus towards the developers. I would also like to encourage you to use the search function before posting an idea. Often similar ideas have been posted and less duplicates keeps the community easier to navigate.
http://community.spotify.com/t5/Spotify-Ideas/Sleep-Timer/idi-p/86269
Have a great day!
Tip for iOS Users:
If you set a timer in the Clock app go to the ringtone selection and scroll all the way down. There you can choose to stop playback when the timer ends and it works just like your suggested feature.
Don't know about Android, OS X or Windows though...
ast1, the method you describe does not work for me on iPad, there's only about a one second pause before the music continues...would have been great...
As mentioned, a similar idea has also been suggested here:
http://community.spotify.com/t5/Spotify-Ideas/Sleep-Timer/idi-p/86269
Add your kudos and comments there please! 😉
Even though it has already been mentioned that this is a duplicate sugestion, the referenced link was for a suggestion of 2012. The answer was that Spotify would be working on platforms already available today.
It would be awesome to hear what's their priority right now, since this shouldn't be as complex as launching new platforms or creating new algorithms to fine-tune the songs sugestions we have...I mean...it's only a timer. My old 21" tube TV has that function.
Use SONOS for this.