Floor times

Timestamps are automatically floored before being inserted into
the database. This makes filtering by timestamps easier.