Sleeping Time will fetch the last 1000 tweets of a Twitter user and then determines the approximate sleeping schedule based on the time when he or she is least active on Twitter.
There's no rocket science involved but lot of people say that the results are pretty accurate. We only index "public" Twitter profiles and will never post anything to Twitter on your behalf.