Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 371 Bytes

README.md

File metadata and controls

15 lines (13 loc) · 371 Bytes

#GREGORIAN #WESTERN #SHAMSI #PERSIAN #SOLAR #MILADI #Jalali, #Persian, #Khorshidi

use gregorian2shamsi::*;

fn main(){
    let d =Date { day: 15, month: 12, year: 1399 };
    println!("{:?}",
        convert_to_gregorian(d)
    );
}

assert_eq!(
        Date{year:1398,month:10,day:11},
        convert_to_shamsi(Date { day: 1, month: 1, year: 2020 }));