Crate sac13

Source
Expand description

SAC13 is a 13-month solar calendar with fixed four-week months, starting each year with the March Equinox.

Static Badge Repository link icon Crates.io Version docs.rs Crates.io License

This library is the Rust reference implementation for SAC13 and maintains data types and functions to convert, among others, 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.
DateComponentSeparator
A separator between date components in their textual representation. At most six ASCII characters long.
GregorianDate
Gregorian Calendar date (proleptic).
ParsedDate
The parsing result of Date::parse_str, which is basically a SAC13 Date with attached parsing information.
ParsedFormat
Details about the format of the parsed input.
ParsedGregorianDate
The parsing result of GregorianDate::parse_str, which is basically a GregorianDate with attached parsing information.
ParsedSacOrGreg
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§

ComponentOrder
Describes the order of date components.
Month
Represents a month on the SAC13 calendar.
SacOrGreg
EitherDate is either a GregorianDate or SAC13 Date.
YearType
The type of the year.

Traits§

CalendarDate
A minimum set of functionality a typical calendar should provide.