fn checked_dur2intervals(dur: &Duration) -> Option<i64>