import us.dustinj.timezonemap.TimeZoneMap
// takes 11 s, may throw
val timeZoneMap = TimeZoneMap.forEverywhere()
// may be null, may throw
val tz = timeZoneMap.getOverlappingTimeZone(
degreesLatitude,
degreesLongitude,
)
…
// “America/Los_Angeles”
timeZoneString = tz.zoneId
…
// throws if time zone string is unknown
val timeZone = TimeZone.of(timeZoneString)
I think this should be documented and implemented in the Android example project
For modern 2024 Android Apps, ie. Kotlin 2.0.0, Kotlin DSL Gradle Version Catalog and Compose:
in Android Studio project file gradle/libs.versions.toml:
in Android Studio project file app/build.gradle.kts:
In kotlin:
I think this should be documented and implemented in the Android example project