add a function add time of day
migrate wim imputation functions here from bdp