We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quoting https://kotlinlang.org/api/kotlinx-datetime/kotlinx-datetime/kotlinx.datetime/period-until.html:
All components of the DateTimePeriod returned are [...] positive or zero if this instant is earlier than the other.
DateTimePeriod
val tz = TimeZone.of("Europe/Berlin") println( LocalDateTime(2025, 3, 29, 2, 30).toInstant(tz).periodUntil( LocalDateTime(2025, 3, 30, 3, 10).toInstant(tz), tz)) // P1DT-20M
Runnable: https://pl.kotl.in/LedZ6Njqf
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Quoting https://kotlinlang.org/api/kotlinx-datetime/kotlinx-datetime/kotlinx.datetime/period-until.html:
Runnable: https://pl.kotl.in/LedZ6Njqf
The text was updated successfully, but these errors were encountered: