Expand description
A library aims to support multiple calendars.
Omnical provides a generic Date
struct that represents a date by
Julian day number, and multiple
calendar systems that can be converted to and from Date
.
Currently supported calendars:
Re-exports§
pub use astronomy::LunarPhase;
pub use astronomy::SolarTerm;
pub use calendar::Calendar;
pub use calendar::Day;
pub use calendar::Month;
pub use calendar::Year;
pub use chinese::Branch;
pub use chinese::Calendar as ChineseCalendar;
pub use chinese::Day as ChineseDay;
pub use chinese::Month as ChineseMonth;
pub use chinese::Stem;
pub use chinese::StemBranch;
pub use chinese::Year as ChineseYear;
pub use date::Date;
pub use date::Weekday;
pub use gregorian::Calendar as GregorianCalendar;
pub use gregorian::Day as GregorianDay;
pub use gregorian::Month as GregorianMonth;
pub use gregorian::MonthName;
pub use gregorian::Year as GregorianYear;
pub use astronomy::LunarPhase::*;
pub use astronomy::SolarTerm::*;
pub use date::Weekday::*;
pub use gregorian::MonthName::*;
Modules§
Functions§
- Ignores the
None
variant of anOption
and returns the inner value. - Returns the current Unix time.