pub(super) fn find_local_time_type_from_local(
        &self,
        local_time: i64,
        year: i32,
    ) -> Result<crate::LocalResult<LocalTimeType>, Error> {
        match self {
            TransitionRule::Fixed(local_time_type) => {
                Ok(crate::LocalResult::Single(*local_time_type))
            }
            TransitionRule::Alternate(alternate_time) => {
                alternate_time.find_local_time_type_from_local(local_time, year)
            }
        }
    }
/// Find the local time type associated to the transition rule at the specified Unix time in seconds
Find the local time type associated to the transition rule at the specified Unix time in seconds
Find the local time type associated to the transition rule at the specified Unix time in seconds
pub(super) fn find_local_time_type_from_local(
        &self,
        local_time: i64,
        year: i32,
    ) -> Result<crate::LocalResult<LocalTimeType>, Error> {
        match self {
            TransitionRule::Fixed(local_time_type) => {
                Ok(crate::LocalResult::Single(*local_time_type))
            }
            TransitionRule::Alternate(alternate_time) => {
                alternate_time.find_local_time_type_from_local(local_time, year)
            }
        }
    }
pub ( super ) fn find_local_time_type_from_local ( & self , local_time : i64 , year : i32 , ) -> Result < crate :: LocalResult < LocalTimeType > , Error > { match self { TransitionRule :: Fixed ( local_time_type ) => { Ok ( crate :: LocalResult :: Single ( * local_time_type ) ) } TransitionRule :: Alternate ( alternate_time ) => { alternate_time . find_local_time_type_from_local ( local_time , year ) } } }
Find the local time type associated to the transition rule at the specified Unix time in seconds
Find the local time type associated to the transition rule at the specified Unix time in seconds
&self
local_time
i64
year
i32
&self
local_time
i64
year
i32