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

Is there currently any way of getting the number of total days in a month?

cookbook

I am getting a date in a format like this "2021-03-26 22:02:53" from the API which is not ISO format, and I created a custom serializer for it but I...

formatters

Many APIs return a unix timestamp, the seconds from the epoch as `Long`. Although the serializer is easy to create, it could be provided. ```kt public object InstantUnixSecondsSerializer : KSerializer...

formatters

Hello, Please make the Android `actual` types implement also [`java.io.Serializable`](https://developer.android.com/reference/java/io/Serializable) (not Kotlin `@Serializable` as described in #37). This will allow us to make the complex types, which depends on `kotlinx.datetime.*`...

Parsing a string as an Instant like `2021-08-22T03:32:10+0000` fails due to `fixOffsetRepresentation` adding `:00` to the end of the string. The underlying Java Time library is able to handle this...

formatters

Originally suggested in PR #173 which contained both the sealed hierarchy and YearMonth. The YearMonth feature request is in #168. The implementation of YearMonth (and Year) is related to this...

Usecase: Using the coroutines TestCoroutinesScheduler timeSource to sync skipped delays with this Clock ```kt @Test fun integrationTest() = runTest { val clock = testTimeSource.toClock() assertEquals(Instant.fromEpochSeconds(0), clock.now()) delay(1.seconds) assertEquals(Instant.fromEpochSeconds(1), clock.now()) }...

Hi all, I'm working on adding support for `DateTimeFormatter`, it seems pretty straight forward for `JVM` and `JS` platforms and I'll open a PR soon for these two platforms. However,...

formatters