45 double unix_time_with_leap_seconds = reference_time.value * 1e-3 + etsi_its_msgs::UNIX_SECONDS_2004;
46 uint16_t n_leap_seconds =
47 etsi_its_msgs::getLeapSecondInsertionsSince2004(
static_cast<uint64_t
>(unix_time_with_leap_seconds));
48 return (unix_time_with_leap_seconds - n_leap_seconds) * 1e9;