Takhion / joda-time-android-no-tzdb

Joda Time, with time zones provided by Android.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Joda-Time, with time zones provided by Android

version

NOTE: requires Kotlin!

Download

Gradle

dependencies {
    implementation("me.eugeniomarletti:joda-time-android-no-tzdb:$version")
}

Usage

Create a custom Android Application (if you don't have one already):

package com.example

import android.app.Application
import me.eugeniomarletti.android.joda.notzdb.initJodaTimeForAndroid

class MyApplication : Application() {
    override fun onCreate() {
        super.onCreate()
        initJodaTimeForAndroid() // that's it!
    }
}

Remember to have the correct android:name inside the application tag of your AndroidManifest.xml:

<manifest
    ...>
    <application
        android:name=".MyApplication"
        ...

About

Joda Time, with time zones provided by Android.

License:MIT License


Languages

Language:Kotlin 100.0%