/// Gets the year in which the event starts.
Gets the year in which the event starts.
Gets the year in which the event starts .
pub fn start_year(&self) -> i32 {
        match self.time {
            EventTime::DateOnly {
                start_date,
                end_date: _,
            } => start_date.year(),
            EventTime::DateTime { start, end: _ } => start.year(),
        }
    }
pub fn start_year ( & self ) -> i32 { match self . time { EventTime :: DateOnly { start_date , end_date : _ , } => start_date . year ( ) , EventTime :: DateTime { start , end : _ } => start . year ( ) , } }
Gets the year in which the event starts.
Gets the year in which the event starts .
&self