thai-year-conv 0.1.1

A library for converting between Christian (AD) and Buddhist (BE) years
Documentation
  • Coverage
  • 83.33%
    5 out of 6 items documented3 out of 5 items with examples
  • Size
  • Source code size: 2.98 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.31 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • bombman/thai-year-conv
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • bombman

Thai Year Converter

A Rust library for converting between Christian (AD) and Buddhist (BE) years.

Usage

Documentation = "https://docs.rs/thai-year-conv"

Add this to your Cargo.toml:

[dependencies]
thai-year-conv = "0.1.1"
use thai_year_conv::{Year, YearConversion};
fn main() {
    let buddhist_year = Year::new(2024).to_buddhist_year();
    let christian_year = Year::new(2557).to_christian_year();
    println!("buddhist_year {}", buddhist_year);
    println!("christian_year {}", christian_year);
}