8000 GitHub - noel-archive/iana-tz: 🎑 Up to date IANA timezone database library for Kotlin (JVM, JS, Native)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Apr 14, 2023. It is now read-only.
/ iana-tz Public archive

🎑 Up to date IANA timezone database library for Kotlin (JVM, JS, Native)

License

Notifications You must be signed in to change notification settings

noel-archive/iana-tz

Repository files navigation

🎑 IANA Timezone Library for Kotlin Multiplatform

Up to date IANA timezone database library for Kotlin (JVM, JS, Native)

Usage

import org.noelware.iana.*

fun main() {
    AMERICAS.first { it.name.endsWith("Phoenix") }
    // => org.noelware.iana.IANATimezone[America/Phoenix]
}

Installation

Gradle

Kotlin DSL

repositories {
    // If you're using the Noel Gradle Utils package, you can use the
    // `noelware` extension
    maven {
        url = uri("https://maven.noelware.org")
    }
}

dependencies {
    // If you're using the Noel Gradle Utils package, you can use
    // the `noelware` extension to automatically prefix `org.noelware.<module>`
    // in the dependency declaration
    implementation("org.noelware.iana:iana-tz:<version>")
}

Groovy DSL

repositories {
    maven {
        url "https://maven.noelware.org"
    }
}

dependencies {
    implementation "org.noelware.iana:iana-tz:<version>"
}

Maven

Declare the Noelware Maven repository under the <repositories> chain:

<repositories>
    <repository>
        <id>noelware-maven</id>
        <url>https://maven.noelware.org</url>
    </repository>
</repositories>

Now declare the dependency you want under the <dependencies> chain:

<dependencies>
    <dependency>
        <groupId>org.noelware.iana</groupId>
        <artifactId>iana-tz-jvm</artifactId>
        <version>{{VERSION}}</version>
        <type>pom</type>
    </dependency>
</dependencies>

License

iana-tz-kt is released under the MIT License with love by Noelware

About

🎑 Up to date IANA timezone database library for Kotlin (JVM, JS, Native)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0