tumblr time range function

Previous push careless deleted some code line of twitter. This version
works fine for both