You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the timespec seconds value for 1399/12/30 and 1400/01/01 are different which is expected behavior
but same values for 1403/12/30 and 1404/01/01 are the same
minimal reproduction:
let time = ptime::from_persian_date(1399,11,30).unwrap().to_timespec().sec;println!("{}",&time);let time = ptime::from_persian_date(1400,0,1).unwrap().to_timespec().sec;println!("{}",&time);let time = ptime::from_persian_date(1403,11,30).unwrap().to_timespec().sec;println!("{}",&time);let time = ptime::from_persian_date(1404,0,1).unwrap().to_timespec().sec;println!("{}",&time);
output
1616198400
1616284800
1742428800
1742428800
The text was updated successfully, but these errors were encountered:
I fixed the issue but had to change the api to my likings
you could check the resolved code and new tests and maybe merge if you are ok with the new api
years 1399 and 1403 are leap years
the timespec seconds value for 1399/12/30 and 1400/01/01 are different which is expected behavior
but same values for 1403/12/30 and 1404/01/01 are the same
minimal reproduction:
output
The text was updated successfully, but these errors were encountered: