pub fn ym_to_sec(val: &Option<i32>) -> Option<i64>
This function computes the duration (in milliseconds) of the given year-month-interval.