PrimeCalendar

Additional

Language
Kotlin
Version
N/A
Created
May 23, 2019
Updated
Nov 2, 2019
Owner
Mohammad Amin Hassani (aminography)
Contributor
Mohammad Amin Hassani (aminography)
1
Activity
Badge
Generate
Download
Source code

Blurb

PrimeCalendar ⚡️

PrimeCalendar provides all the java.util.Calendar functionalities for Persian, Hijri, and Japanese dates. PrimeCalendar can be used in every JVM-based projects such as Java/kotlin applications, Android apps, etc.

This library contains three types of calendar systems as well as their conversion to each other.

Calendar System Provider Class Descriptions
Iranian PersianCalendar The most accurate solar calendar in use today.
Islamic HijriCalendar A lunar calendar consisting of 12 lunar months in a year of 354 or 355 days.
Gregorian CivilCalendar The common calendar which is used in most of the world.
Japanese JapaneseCalendar The calendar which is used in Japan.

Download

PrimeCalendar is available on bintray to download using build tools systems.

• Gradle

Add the following lines to your build.gradle file:

repositories {
    jcenter()
}
  
dependencies {
    implementation 'com.aminography:primecalendar:1.2.15'
}

• Maven

Add the following lines to your pom.xml file:

<repositories>
    <repository>
        <id>jcenter</id>
        <url>https://jcenter.bintray.com/</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>com.aminography</groupId>
        <artifactId>primecalendar</artifactId>
        <version>1.2.15</version>
    </dependency>
</dependencies>



Kotlin

val calendar = HijriCalendar()
// or
val calendar = CalendarFactory.newInstance(CalendarType.HIJRI)