Giter VIP home page Giter VIP logo

rust-persian-calendar's People

Contributors

yaa110 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rust-persian-calendar's Issues

پیشنهاد توسعه

سلام پیشنهادی دارم برای افزودن قابلیت نمایش مناسبت به برنامه ای که توسعه دادید

الان که همه ی سیستم ها به اینترنت متصل هستند پیشنهاد میکنم ارتباط با ای پی آي های تقویم رو هم در این سورس خوب پیاده سازی کنید
خودم از این سرویس زیاد استفاده میکنم


وب سرویس تقویم فارسی

اطلاعات خوبی ارائه میده مثل وقایع و مناسبت های هر روز و دریافت رویداد در حالت شمسی و قمری و میلادی

Some leap year timestamps are not correctly calculated

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

abstract time crate

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.

لینکدین

سلام آقافرزاد خوبید
لینکدینتون رو حذف کردید؟

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.