Added basic time closing functionality.  Very much WIP.