Expand description
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, among others, from and to
- Gregorian Calendar dates
- JulianDays
- UnixDays (days since 1970-01-01)
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.
- Date
Component Separator - A separator between date components in their textual representation. At most six ASCII characters long.
- Gregorian
Date - Gregorian Calendar date (proleptic).
- Parsed
Date - The parsing result of Date::parse_str, which is basically a SAC13 Date with attached parsing information.
- Parsed
Format - Details about the format of the parsed input.
- Parsed
Gregorian Date - The parsing result of GregorianDate::parse_str, which is basically a GregorianDate with attached parsing information.
- Parsed
SacOr Greg - Parsing result of SacOrGreg::parse_str.
- 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 - Describes the order of date components.
- Month
- Represents a month on the SAC13 calendar.
- SacOr
Greg - EitherDate is either a GregorianDate or SAC13 Date.
- Year
Type - The type of the year.
Traits§
- Calendar
Date - A minimum set of functionality a typical calendar should provide.