https://github.com/basemax/gregorian_to_jalali
If you want to convert Gregorian date to Jalali, here is collection of minimal solution for most programming languages.
https://github.com/basemax/gregorian_to_jalali
c date datetime gregorian gregorian-calendar gregorian-calender gregorian-converter gregorian-to-jalali gregorian-to-persian gregoriantojalali iran jalali jalali-calendar jalali-converter jalali-date jalali-datetime jalali-to-gregorian jalalidate jalalitogregorian php
Last synced: 5 days ago
JSON representation
If you want to convert Gregorian date to Jalali, here is collection of minimal solution for most programming languages.
- Host: GitHub
- URL: https://github.com/basemax/gregorian_to_jalali
- Owner: BaseMax
- License: gpl-3.0
- Created: 2021-12-30T06:02:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-06T12:57:30.000Z (3 months ago)
- Last Synced: 2025-05-05T21:15:31.980Z (5 days ago)
- Topics: c, date, datetime, gregorian, gregorian-calendar, gregorian-calender, gregorian-converter, gregorian-to-jalali, gregorian-to-persian, gregoriantojalali, iran, jalali, jalali-calendar, jalali-converter, jalali-date, jalali-datetime, jalali-to-gregorian, jalalidate, jalalitogregorian, php
- Language: C++
- Homepage:
- Size: 68.4 KB
- Stars: 9
- Watchers: 5
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
- [x] C
- [x] PHP
- [x] C++ [STL, Boost, Qt]
- [x] QML
- [x] Dart
- [x] Java
- [x] Kotlin
- [x] C#
- [x] Python
- [x] JavaScript
- [x] Go
- [x] 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](https://github.com/BaseMax/PHPJalaliDate).
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