move time realated funcs in options to timetuils