Skip to content
/ RRule Public
forked from PhilJay/RRule

Kotlin implementation for handling iCalendar 🗓️ (RFC 5545) recurrence rules

License

Notifications You must be signed in to change notification settings

Nj0be/RRule

 
 

Repository files navigation

Release

RRule

Kotlin implementation for conveniently handling and modifying iCalendar (RFC 5545) recurrence rules.

Dependency

Add the following to your build.gradle file:

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}

dependencies {
    implementation 'com.github.imBenjamin741:RRule:1.0.4'
}

Or add the following to your pom.xml:

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependency>
    <groupId>com.github.imBenjamin741</groupId>
    <artifactId>RRule</artifactId>
    <version>1.0.4</version>
</dependency>

Sample Usage

Transform iCalendar RFC 5545 String to RRule object:

val rrule = RRule("RRULE:FREQ=MONTHLY;INTERVAL=2;COUNT=10;BYDAY=1SU,-1SU")

// convenient property access
rrule.freq 
rrule.until
rrule.count
rrule.interval
rrule.byDay
// ...

Transform RRule object to iCalendar RFC 5545 String:

val rfc5545String = rrule.toRFC5545String()

About

Kotlin implementation for handling iCalendar 🗓️ (RFC 5545) recurrence rules

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 100.0%