import write_time, write_date to record_register namespace; fixup compilation, working on windows. todo: test for more broken stuff.
move out write_date, write_tiem