Moved dnet_time_before/after into public header.