add time extraction functions