Skip to content

If you want to convert Gregorian date to Jalali, here is collection of minimal solution for most programming languages.

License

Notifications You must be signed in to change notification settings

BaseMax/gregorian_to_jalali

Repository files navigation

Gregorian to Jalali date (gregorian2jalali calendar)

If you want to convert Gregorian date to Jalali, here is collection of minimal solution for most programming languages.

If you know any of these languages, add them and send a pull request. Also if you would like to learn a new language, it's time and a chance for you. Welcome!

Languages

  • C
  • PHP
  • C++ [STL, Boost, Qt]
  • QML
  • Dart
  • Java
  • Kotlin
  • C#
  • Python
  • JavaScript
  • Go
  • Typescript
  • Ruby
  • Elixir
  • Perl
  • Rust
  • Visual Basic
  • Bash

Philosophy

2 years ago, I created a repository to archive minimal solution for convert a gregorian date to jalali PHPJalaliDate avaiable at here.

But here, Want to keep minimal solution for most programming languages. I think in most case we not need a very large library just to convert a date, so these solutions can help everyone in that way.

Contribute

Feel free to improve/change or add a new solution for languages.

TODO

  • Add more test cases
  • Add more languages

© Copyright 2021, Max Base and all of the contributors