All Projects → razeghi71 → JalaliCalendar

razeghi71 / JalaliCalendar

Licence: other
Jalali Calendar for java

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to JalaliCalendar

libcalendars
Collection of calendar arithmetic algorithms
Stars: ✭ 38 (-50%)
Mutual labels:  jalali-calendar, jalali, gregorian
gahshomar
A Persian (Jalali/Farsi) calendar for Linux
Stars: ✭ 69 (-9.21%)
Mutual labels:  persian-calendar, jalali-calendar, jalali
persian-date-time
Persian Date Time
Stars: ✭ 54 (-28.95%)
Mutual labels:  persian-calendar, jalali-calendar, gregorian
shamsi date
A Flutter and Dart package for using Jalali (Shamsi, Solar, Persian or Jalaali) calendar. You can convert, format and manipulate Jalali and Gregorian (Miladi) date and times.
Stars: ✭ 59 (-22.37%)
Mutual labels:  jalali, gregorian
iranian-calendar-events
Fetch Iranian calendar events (Jalali, Hijri and Gregorian) from time.ir website
Stars: ✭ 28 (-63.16%)
Mutual labels:  jalali-calendar, jalali
Date
Fix all needs to date in php
Stars: ✭ 32 (-57.89%)
Mutual labels:  jalali, gregorian
datium
⏰ The flexible DataTime Package written in PHP
Stars: ✭ 18 (-76.32%)
Mutual labels:  jalali-calendar, jalali
jalali-pandas
A pandas extension that solves all problems of Jalai/Iraninan/Shamsi dates
Stars: ✭ 29 (-61.84%)
Mutual labels:  jalali-calendar, jalali
PrimeCalendar
PrimeCalendar provides all of the java.util.Calendar functionalities for Persian, Hijri, and ... dates. It is also possible to convert dates to each other.
Stars: ✭ 45 (-40.79%)
Mutual labels:  persian-calendar, date-conversion
pcal
Command line tool to convert Gregorian calendar dates to Persian calendar dates
Stars: ✭ 22 (-71.05%)
Mutual labels:  persian-calendar, jalali-calendar
flutter date picker timeline
Gregorian and Jalali customizable date picker as a horizontal timeline
Stars: ✭ 29 (-61.84%)
Mutual labels:  persian-calendar, jalali
go-persian-calendar
The implementation of Persian (Solar Hijri) Calendar in Go
Stars: ✭ 118 (+55.26%)
Mutual labels:  persian-calendar, jalali
persiantools
Jalali date and datetime with other tools
Stars: ✭ 101 (+32.89%)
Mutual labels:  jalali, gregorian
vue2-persian-datepicker
A vue component that provides datepicker for persian developers
Stars: ✭ 100 (+31.58%)
Mutual labels:  persian-calendar
react-calendar-datetime-picker
A simple and fast date and time picker component for React
Stars: ✭ 58 (-23.68%)
Mutual labels:  persian-calendar
JalaliMaterialDateTimePicker
Pick a date or time for Android with support Gregorian and Jalali calendar at the same time
Stars: ✭ 24 (-68.42%)
Mutual labels:  jalali-calendar
MoalemYar
A personal project for class management, using various technologies like WPF, Entityframwork, CodeFirst, Sqlite, Migration and more
Stars: ✭ 53 (-30.26%)
Mutual labels:  persian-calendar
JDate
A Jalali to Gregorian converter in Javascript with support of formatting output
Stars: ✭ 83 (+9.21%)
Mutual labels:  jalali
mds-angular-datetime-picker-package
Angular 2+ And Bootstrap 4+ DateTimePicker
Stars: ✭ 18 (-76.32%)
Mutual labels:  persian-calendar
ShamsiCalendar
تقویم فارسی و شمسی - Shamsi & Persian Calendar 📆
Stars: ✭ 39 (-48.68%)
Mutual labels:  persian-calendar

JalaliCalendar

JalaliCalendar is a Persian Calendar for java inspired from Roozh project. It has a better API and it's more developer friendly

Add to Project

JalaliCalendar is available in central maven repository. add mavenCentral() to your repository list in build.gradle. Then add this line to your dependencies:

compile 'ir.huri:JalaliCalendar:1.3.3'

Getting Started

First of all I should note that java gregorian calenders month is 0 base

To Create a Jalali Date with specified year, month, day use the constructor :

JalaliCalendar jalaliCalendar = new JalaliCalendar(1395, 1, 28); 

To Covert a Gregorian Date to Jalali :

JalaliCalendar jalaliDate = new JalaliCalendar(new GregorianCalendar(2016, 4, 16)); 

To Convert a Jalali Date to Gregorian Date :

JalaliCalendar jalaliCalendar = new JalaliCalendar(1395, 1, 28);
GregorianCalendar gc = jalaliCalendar.toGregorian(); 

Read more examples in test files.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].