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

`monthNumber` is still called that in the formatting facilities to distinguish `monthNumber` from `monthName`, and also in `DateTimeComponents` because `monthNumber` can contain out-of-bounds data and is useful even aside from...

Obtaining the current instant is often needed, as is doing some `Duration`-based operations on it. `Instant` is useful even when the rest of the library isn't: you don't need the...

breaking change

The purpose of `DatePeriod` and `DateTimePeriod` is to define the duration between two dates or instants, respectively. Intuitively, it makes sense to define addition of two periods: if there's time...

breaking change

Padding class now suggests only strict options. You either have NONE or ZERO or SPACE. Same for formating and parsing. It looks like a common usecase to have a flexible...

* Re https://github.com/Kotlin/kotlinx-datetime/pull/336 which fixed https://github.com/Kotlin/kotlinx-datetime/issues/297 This re-fixes https://github.com/Kotlin/kotlinx-datetime/issues/297. cc @dkhalanskyjb @MarcelReiter @LouisCAD ## Why? The current solution on `master` is not broken, but it references the wrong library. Why?...

Sometimes, `X.Formats.ISO` and `X.parse()`/`X.toString()` behave subtly differently; currently, it's the case for `LocalDateTime` and `LocalTime`. With this change, every entity that supports custom formats obtains a separate default serializer in...

Hi there! Coming from the Slack channel I wanted to request the following features we had in Java: - [getDSTSavings()](https://developer.android.com/reference/kotlin/android/icu/util/TimeZone#getdstsavings) - [getRawOffset()](https://developer.android.com/reference/kotlin/android/icu/util/TimeZone#getrawoffset) I need those methods to rewrite existing code...

waiting for clarification