Up to date IANA timezone database library for Kotlin (JVM, JS, Native)
import org.noelware.iana.*
fun main() {
AMERICAS.first { it.name.endsWith("Phoenix") }
// => org.noelware.iana.IANATimezone[America/Phoenix]
}
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>")
}
repositories {
maven {
url "https://maven.noelware.org"
}
}
dependencies {
implementation "org.noelware.iana:iana-tz:<version>"
}
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>
iana-tz-kt is released under the MIT License with love by Noelware