Joda Time and Java 8 Time Extensions for Kotlin

Overview

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 might also like...
An Android platform component management tool chain, based on Kotlin language.
An Android platform component management tool chain, based on Kotlin language.

Rubik Rubik是一套解决Android平台组件化的综合方案,提供gradle project之间的路由通讯能力,以及对gradle project的组件定义、版本控制、maven发布、aar/jar与源码之间的切换以及组件的自由组合等能力。 Rubik由两部分组成: Rubik Router

Android calendar view inspired by Sunrise calendar and iOS7 stock calendar
Android calendar view inspired by Sunrise calendar and iOS7 stock calendar

SilkCal Android calendar view inspired by Sunrise calendar and iOS7 stock calendar. Usage Add compile 'me.nlmartian.silkcal:library:0.1.1' to your dep

📅 CosmoCalendar is a fully customizable calendar with a wide variety of features and displaying modes.
📅 CosmoCalendar is a fully customizable calendar with a wide variety of features and displaying modes.

CosmoCalendar Made by Applikey Solutions Usage Customization Common Selection Current day Navigation buttons Weekend days Connected days Disabled days

CustomizableCalendar is a library that allows you to create your calendar, customizing UI and behaviour
CustomizableCalendar is a library that allows you to create your calendar, customizing UI and behaviour

CustomizableCalendar This library allows you to create a completely customizable calendar. You can use CustomizableCalendar to create your calendar, c

A simple library which gives you custom design CalendarView with dialog functionality and event handlers.
A simple library which gives you custom design CalendarView with dialog functionality and event handlers.

CalendarView A simple library which gives you custom design CalendarView with dialog functionality and event handlers. 1: CalendarView Demo Screen 1.1

A simple calendar with events, customizable widgets and no ads.
A simple calendar with events, customizable widgets and no ads.

Simple Calendar A simple calendar with events and a customizable widget. A simple calendar with optional CalDAV synchronization. You can easily create

 Compose Date Picker - Select month and year
Compose Date Picker - Select month and year

Android DatePicker with month and year build with Compose UI

A simple Cupcake Ordering App, choose flavor, pickup on a date, get order summary and send order via any other app.

Cupcake app This app contains an order flow for cupcakes with options for quantity, flavor, and pickup date. The order details get displayed on an ord

Comments
  • Version 1.1.x has corrupted pom file

    Version 1.1.x has corrupted pom file

    Version of kotlin stdlib is missing in the pom file on jcenter. Version 1.0.0 works for me

    <dependency>
      <groupId>org.jetbrains.kotlin</groupId>
         <artifactId>kotlin-stdlib</artifactId>
         <scope>runtime</scope>
    </dependency>
    
    opened by ktarasenko 4
  • Add DateTimeProgression for java.time

    Add DateTimeProgression for java.time

    It seems that there is no progression for DataTimeProgression. Is there any particular for this to be the case? There is one for joda time. If not, allow me to request this feature.

    opened by PedroAlvarado 1
  • Support for ThreeTenBp

    Support for ThreeTenBp

    relating to #7, would it make sense to also add support for https://github.com/ThreeTen/threetenbp?

    It can be used as a drop-in replacement for android < API Level 26, allowing very smooth (package replace) migration once a project moves to >= 26.

    Would you accept PR for this?

    opened by masc3d 3
Owner
Sunghyouk Bae
Backend developer
Sunghyouk Bae
Android NTP time library. Get the true current time impervious to device clock time changes

TrueTime for Android Make sure to check out our counterpart too: TrueTime, an NTP library for Swift. NTP client for Android. Calculate the date and ti

Instacart 1.3k Jan 4, 2023
java.time Kotlin extension functions library.

Java Time Kotlin extension functions. Background Java Time became integrated to the JDK as of Java 8. It was a huge improvement over its Date predeces

Sami Eljabali 31 Mar 15, 2022
Multiplatform Date and time library for Kotlin

Klock is a Date & Time library for Multiplatform Kotlin. It is designed to be as allocation-free as possible using Kotlin inline classes, to be consis

null 681 Dec 19, 2022
Additions for Kotlin's date & time library kotlinx-datetime

fluid-time Additions for Kotlin's date & time library kotlinx-datetime. kotlinx-datetime is very early stage and not as actively developed as other of

Marc Knaup 39 Nov 11, 2022
A material-styled android view that provisions picking of a date, time & recurrence option, all from a single user-interface.

SublimePicker A customizable view that provisions picking of a date, time & recurrence option, all from a single user-interface. You can also view 'Su

Vikram 2.3k Jan 4, 2023
Pick a date or time on Android in style

Material DateTime Picker - Select a time/date in style Material DateTime Picker tries to offer you the date and time pickers as shown in the Material

null 4.7k Dec 29, 2022
KotlinX multiplatform date/time library

kotlinx-datetime A multiplatform Kotlin library for working with date and time. See Using in your projects for the instructions how to setup a depende

Kotlin 1.6k Jan 5, 2023
Estimated Time of Arrival Bar

Estimated Time of Arrival Bar

Tek 1 Mar 12, 2022
A Kotlin Multiplatform library for working with dates and times

Island Time A Kotlin Multiplatform library for working with dates and times, heavily inspired by the java.time library. Features: A full set of date-t

Erik Christensen 71 Dec 28, 2022
Kmpcalendar - A calendar library and views written for kotlin multiplatform

KMPCalendarView Minimal Kotlin Multiplatform project with SwiftUI, Jetpack Compo

Anmol Verma 2 Oct 7, 2022