Expand description
§sac13
SAC13 is a 13-month solar calendar with fixed four-week months, starting each year with the March Equinox.
This library is the Rust reference implementation for SAC13 and maintains data types and functions to convert from the Gregorian Calendar to SAC13 and vice versa.
If you want to interop with other calendar systems it also provides, among others, conversions from and to
Modules§
- day_
counts - Primitive types for linear day counts like the Julian Day Number.
- prelude
- Reexports for common types.
Macros§
- date
- Creates a SAC13 date with a statically known and compile time checked value.
- date_
greg - Creates a Gregorian Calendar date with a statically known and compile time checked value.
- year
- Creates a SAC13 year with a statically and compile time checked value.
Structs§
- Date
- SAC13 date.
- Gregorian
Date - Gregorian Calendar date (proleptic).
- Parsed
Date - Year
- SAC13 year. It roughly corresponds to the Gregorian Year + 10’000. Roughly, because the Gregorian Calendar starts its year with January and SAC13 with March.
Enums§
- Component
Order - Gregorian
OrSac13 - Month
- Represents a month on the SAC13 calendar.
- Year
Type - The type of the year.
Traits§
- Calendar
Date - A minimum set of functionality a typical calendar should provide.
Functions§
- parse_
date_ str - Parses various SAC13 and Gregorian Calendar formats.