Improve time query

Decided to make the current time-query parser quicker, and shorter. With this change, here are some of the queries that can be handled now:

![Screenshot](http://i62.tinypic.com/1zd8wvo.png)