fn sas_time_to_ms(val: f64) -> Option<i32>
Converts a SAS time (seconds since midnight, possibly fractional) to milliseconds, rounding rather than truncating.