thai_year_converter

Crates.iothai_year_converter
lib.rsthai_year_converter
version0.1.0
sourcesrc
created_at2024-07-14 14:07:15.384927
updated_at2024-07-14 14:07:15.384927
descriptionA library for converting between Christian (AD) and Buddhist (BE) years
homepagehttps://github.com/bombman/thai_year_converter
repositoryhttps://github.com/bomaman/thai_year_converter
max_upload_size
id1303017
size3,274
Nuttapong Maneenate (bombman)

documentation

https://docs.rs/thai_year_converter

README

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);
}

Commit count: 0

cargo fmt