akaltakht / nanakshahi Goto Github PK
View Code? Open in Web Editor NEWRuby gem for nanakshahi calendar
License: MIT License
Ruby gem for nanakshahi calendar
License: MIT License
To reproduce the bug:
Find out Nanakshahi date today
Nanakshahi.from_gregorian(2021,9,12)
=> #<Nanakshahi:0x00007fca1717eda8 @day=28, @month=6, @year=553>
Now create a Nanakshahi object from this date
ajj = Nanakshahi.new(553, 6, 28)
=> #<Nanakshahi:0x00007fca1a866c58 @day=28, @month=6, @year=553>
ajj.to_gregorian.to_s
=> "2022-09-12"
.to_gregorian
method returns incorrect year
To duplicate
[I] ➜ irb
irb(main):001:0> require "nanakshahi"
=> true
irb(main):002:0> Date.today
=> #<Date: 2020-04-13 ((2458953j,0s,0n),+0s,2299161j)>
irb(main):003:0> Date.today.to_s
=> "2020-04-13"
irb(main):004:0> a = Nanakshahi.today
irb(main):005:0> a.to_s
=> "31 r, 552 Nanakshahi"
irb(main):006:0> a.to_gurmukhi
=> "nr r, lla ਨਾਨਕਸ਼ਾਹੀ"
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.