add time parsing utility function Hmstoi