Query date intervals by their numeric epoch time.

SQLite store dates as epoch time offsets in UTC. By converting date
interval endpoints to UTC epoch time in Python, using the SQLite date
functions isn't necessary any more.