kotlinx-datetime icon indicating copy to clipboard operation
kotlinx-datetime copied to clipboard

KotlinX multiplatform date/time library

Results 147 kotlinx-datetime issues
Sort by recently updated
recently updated
newest added

Right now, we have an all-encompassing `class TimeZone` and its subclass, `FixedOffsetTimeZone: TimeZone`. `TimeZone` can be an interface instead, with two separate implementations: `FixedOffsetTimeZone` and `RegionTimeZone`. We could split the...

timezone
breaking change

Since it is a SAM should be declared as a fun interface to allow using a lambda to provide an implementation.

With version 0.4.0, this passes ```kotlin val x = UtcOffset.parse("+4") val y = UtcOffset.parse("+04") assertEquals(x, y) ``` This fails ```kotlin val a = UtcOffset.parse("+4:00") val b = UtcOffset.parse("+04:00") assertEquals(a, b)...

documentation
formatters
breaking change

`Instant` and `UtcOffset` parsing should allow all ISO offset standards. - `-0330` - `-03` - `-03:30` Currently it will fail if you miss the `+` / `-` sign and or...

documentation
formatters

Hi team, I'd like to propose the implementation of mock TimeMark objects in `kotlinx.datetime`. This would greatly enhance our testing capabilities, especially for functions that heavily rely on `TimeMark` objects....

waiting for clarification

There's a pure Kotlin implementation of the datetime library for Kotlin/Native. This code can be used directly to implement the JS and Wasm targets—except for timezone database access. * There's...

timezone
breaking change

We received a few requests to add converters from `LocalDate` and `LocalDateTime` to `NSDate`. Given that `NSDate` is essentially the same as `Instant`, they could look something like this: ```kotlin...

cookbook

Dokka generates a package list to create links if you use this dependency in another project: ```kotlin // build.gradle.kts tasks.dokkaHtmlPartial { dokkaSourceSets.configureEach { externalDocumentationLink("https://cashapp.github.io/sqldelight/2.0.0-alpha05/2.x/") externalDocumentationLink("https://kotlinlang.org/api/kotlinx-datetime/") externalDocumentationLink("https://uuid.softwork.app") externalDocumentationLink("https://kotlinlang.org/api/kotlinx.coroutines/") } } ```...

Added helper function to create a Clock instance by passing in a lambda to be invoked for Clock.now(); Updated Kotlin shield in README to reflect usage of version 1.8.10 Fixes...

Adds a function to convert a `java.time.Clock` to a `kotlinx.datetime.Clock`.