An open API service indexing awesome lists of open source software.

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.

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