pub fn convert_ad_to_bs(year: i32, month: u32, day: u32) -> String
Expand description
Converts a Gregorian (English) date to a Nepali date (Bikram Sambat).
§Arguments
year
- The year in Gregorian calendar.month
- The month in Gregorian calendar (1-12).day
- The day in Gregorian calendar (1-31).
§Examples
use adtobs::convert_ad_to_bs;
let nepali_date = convert_ad_to_bs(2023, 11, 29);
println!("Nepali Date: {}", nepali_date);