Timeutils provides some convenience functions around time.