| Crates.io | republican-calendar |
| lib.rs | republican-calendar |
| version | 0.1.0 |
| created_at | 2025-09-22 13:45:09.570303+00 |
| updated_at | 2025-09-22 13:45:09.570303+00 |
| description | A Rust library for the French Republican Calendar |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1850059 |
| size | 107,406 |
A Rust library for the French Republican Calendar.
use republican_calendar::date::Date;
fn main() {
// Get today's date in Republican calendar
let today = chrono::Local::now().date_naive();
let rc_today = Date::from_gregorian(today);
println!("Today is {}", rc_today);
// Create a Republican calendar date
let date = Date::try_from_ymd(1, 1, 1).unwrap(); // 1 Vendémiaire Year 1
let gregorian = date.to_gregorian(); // Convert to Gregorian
}
The French Republican Calendar uses a new era beginning on September 22, 1792. Each year consists of twelve 30-day months plus 5-6 complementary days called Sans-culottides. Each month and day has a unique name, about which you can read more here.
This project is licensed under the MIT License. See the LICENSE file for details.
This project is under development. The API may change. Contributions welcome!