Added option to use time of day encoder.

Fixes #16.
Agreed. Other than that, :+1: