Skip to content
Joda Time and Java 8 Time Extensions for Kotlin
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper Bump up gradle 5.0 Dec 12, 2018
java-time
koda-time
.gitignore Migrate build script from groovy to kotlin dsl Dec 20, 2018
.travis.yml * Bump up kotlin-stdlib (1.2.30) Mar 18, 2018
CHANGELOG.md Prepare release 2.0.0 Jan 12, 2019
LICENSE
README.md prepare release 1.2.1 Nov 19, 2017
build.gradle.kts * Bump up kotlin 1.3.11 Dec 28, 2018
copyright.txt add `suspend` to chunk, windowed, zipWithNext methods Dec 21, 2018
detekt.yml Update build scripts Dec 19, 2018
gradle.properties * Bump up kotlin 1.3.11 Dec 28, 2018
gradlew Bump up gradle 5.0 Dec 12, 2018
gradlew.bat
settings.gradle.kts Migrate build script from groovy to kotlin dsl Dec 20, 2018

README.md

koda-time

Build Status Download

Joda Time Extensions in Kotlin

supply arithmetic operation (+,-,*,/) for joda-time DateTime in Kotlin language

Usage

    val now = DateTime.now()
    val start = now + 5.minutes()
    val end = now + 15.minutes()
    val interval = start .. end

and supply Extension functions of DateTime, Duration, Instance, Period

Setup

Maven

add dependency

<dependency>
  <groupId>com.github.debop</groupId>
  <artifactId>koda-time</artifactId>
  <version>1.2.1</version>
</dependency>

add repository

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

or

<repositories>
    <repository>
        <id>debop-releases-bintray</id>
        <url>http://dl.bintray.com/debop/maven</url>
    </repository>
</repositories>
Gradle
repository {
    jcenter()     
}
dependencies {
    compile "com.github.debop:koda-time:1.2.1"
}

Build

build by Gradle

$ ./gradlew clean build
You can’t perform that action at this time.