Coder Social home page Coder Social logo

basemax / gregorian_to_jalali Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 3.0 110 KB

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

License: GNU General Public License v3.0

PHP 6.46% C 6.71% Java 8.47% Kotlin 10.27% C++ 25.26% Dart 7.87% Python 7.82% JavaScript 5.16% QML 9.03% C# 6.20% Go 6.75%
date datetime gregorian-calendar jalali-calendar jalali-date gregorian jalali gregorian-to-persian gregorian-to-jalali gregoriantojalali

gregorian_to_jalali's Introduction

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

gregorian_to_jalali's People

Contributors

aminasadiam avatar amir-shiati avatar erfanmola avatar jbampton avatar kambizasadzadeh avatar razaghimahdi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gregorian_to_jalali's Issues

Extend

Hi,

its where we talk about extending this repository. we can refer someone for a Language or task. he can accept and do or not accept. Feel free, It's what open-source way.

If one accepts a language, can do it. If you accept something, please try to do it.

Maybe I can do all of these languages alone but its not lovely.
This is what to say Open-source can be anything we can do. Maybe we think open-source is a very huge thing which we cannot never do that. But it's not.
Open-source is what cause we talk to each other. Enjoy life and Happy coding ^_^

Probably there are many library for Jalali date system and nowadays you are able to convert gregorian to jalali date in most of the languages. but purpose of this repository is to provide a very easy/fast and tiny solution for everyone.

Best,
M.

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.