#year #ad #converting #converter #thai #christian #buddhist

yanked thai_year_converter

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

1 unstable release

Uses old Rust 2015

0.1.0 Jul 14, 2024

#5 in #christian

MIT license

4KB

Thai Year Converter

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

Usage

Add this to your Cargo.toml:

[dependencies]
thai_year_converter = "0.1.0"

use thai_year_converter::{Year, YearConversion};

fn main() {
    let buddhist_year = Year::new(2024).to_buddhist_year();
    let christian_year = Year::new(2567).to_christian_year();
    println!("buddhist_year: {}", buddhist_year);
    println!("christian_year: {}", christian_year);
}

No runtime deps