Japanese era converter for Rust.
Inspired by mattn/go-erajp.
Convert a year to Japanese era.
assert_eq!(Some("令和"), erajp::to_era_from_year(2019));
Convert a day to Japanese era (using chrono)
extern crate chrono;
use chrono::prelude::*;
let today = Local::today();
assert_eq!(Some("平成"), erajp::to_era(&today));
MIT
Tomochika Hara (a.k.a. thara)