ethiopic_calendar/
lib.rs

1mod ethiopian;
2mod gregorian;
3pub use ethiopian::*;
4pub use gregorian::*;
5
6impl From<GregorianYear> for EthiopianYear {
7    fn from(gregorian: GregorianYear) -> Self {
8        Self::from_jdn(gregorian.to_jdn())
9    }
10}
11
12impl From<EthiopianYear> for GregorianYear {
13    fn from(ethiopian: EthiopianYear) -> Self {
14        Self::from_jdn(ethiopian.to_jdn())
15    }
16}