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