Giter Club home page Giter Club logo

bikram's People

Contributors

aashishbaidya avatar acpmasquerade avatar aerawat-foundry avatar bewakes avatar dependabot[bot] avatar dipee avatar hmsadiq avatar poudel avatar rajsubit avatar sanjayadhikari-007 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

bikram's Issues

Constant defined incorrectly for year 2062, 1st and 2nd month.

The constant defined for the first 2 months in Bikram sambat seems to be incorrect for the year 2062 B.S. Which was converting the dates incorrectly.

Date conversion Issue:
Screenshot from 2023-09-26 10-21-14

Incorrect constant issue:
Screenshot from 2023-09-26 10-11-18

Actual days in Baisakh and Jestha for year 2062 B.S.
Screenshot from 2023-09-26 10-22-45

Screenshot from 2023-09-26 10-22-59

Issue while adding samwat with timedelta

  • Python Bikram Samwat version: 2.1.0
  • Python version: 3.8.2
  • Operating System: Linux Mint 19

Description

Adding samwat object with timedelta object didn't return the correct output.

What I Did

samwat(2000, 2, 2) + timedelta(days=1)
Out[1]: samwat(2000, 10, 21)

Expected output --> samwat(2000, 2, 3)

Day Max date validation

  • Python Bikram Samwat version:
  • Python version:
  • Operating System:

Description

need to check for a max day in the month

  • samwat-constructor
  • samwat().replace(day=?)

What I Did

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

Have you considered reducing the map or using any other version to represent it ?

I had done a similar converter few months ago, and when I was thinking of taking it to public, I found yours.

Upon curiosity, the first thing I checked was the map of dates :)
My approach was something like this

2087-9-1 => December, 17 2030 | <span>२०८७ पौष १</span>
2087-10-1 => January, 15 2031 | <span>२०८७ माघ १</span>
2087-11-1 => February, 14 2031 | <span>२०८७ फाल्गुण १</span>
2087-12-1 => March, 16 2031 | <span>२०८७ चैत्र १</span>
2088-1-1 => April, 15 2031 | <span>२०८८ बैशाख १</span>
2088-2-1 => May, 15 2031 | <span>२०८८ जेठ १</span>
2088-3-1 => June, 15 2031 | <span>२०८८ आषाढ १</span>
2088-4-1 => July, 17 2031 | <span>२०८८ श्रावण १</span>
2088-5-1 => August, 18 2031 | <span>२०८८ भाद्र १</span>

The first date of the month in BS calendar stored with the equivalent Gregorian Calendar date.

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.