yaa110 / rust-persian-calendar Goto Github PK
View Code? Open in Web Editor NEWThe implementation of the Persian (Solar Hijri) Calendar in Rust
Home Page: https://crates.io/crates/ptime
License: MIT License
The implementation of the Persian (Solar Hijri) Calendar in Rust
Home Page: https://crates.io/crates/ptime
License: MIT License
الان که همه ی سیستم ها به اینترنت متصل هستند پیشنهاد میکنم ارتباط با ای پی آي های تقویم رو هم در این سورس خوب پیاده سازی کنید
خودم از این سرویس زیاد استفاده میکنم
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:
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
Salam, thanks for your work!
Just wondering, shouldn't you abstract time crate instead of making users of your crate depend on it?
For example , users will need time::Duration
and time::now
you can reexport them with pub use time::{Duration,now}
so anyone who uses your crate can just use ptime::{Duration,now]
and more importantly doesn't have to add time crate.
سلام آقافرزاد خوبید
لینکدینتون رو حذف کردید؟
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.