Providing temporal scopes for an ActiveRecord model that allow to query by time.