Updated time handling throughout model.

This includes changes to history file output.