I've always had a mentality that if I say I'm going to finish x, I finish x before going to bed. This, as you can imagine, means that I have a very unreliable sleeping schedule. I probably average 5 hours a night every week.
A really good comment I read on HN a few days ago recommended that I set an alarm for going to bed not for waking up, It's been working really well for me.