Allow output to be split into multiple files by date.

Adds the --time-group parameter which takes a strftime-format string and creates a new output file with this as a suffix whenever the suffix changes.