Skip to content

Takhion/joda-time-android-no-tzdb

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages