Convert number of hours to int

If the result happens to be a float, `'x' * result` will crash.
Add --sort-time
Set version to 3.1