Daniel Pitts
12/05/2024, 3:07 AMkotlinx.datetime.format.DateTimeFormat
which will correctly parse "an iCalendar format DATE-TIME value in UTC". For example 19000101T000000Z
. ChatGPT and Github Copilot are eager to tell me how to do it with Java, but completely lost with Kotlinx datetime.Daniel Pitts
12/05/2024, 3:13 AMThe library is based on the ISO 8601 international standard, other ways to represent dates and times are out of its scope. Internationalization (such as locale-specific month and day names) is out the scope, too.
Looks like maybe its not possible to do directly.ephemient
12/05/2024, 3:14 AMDaniel Pitts
12/05/2024, 3:15 AMDmitry Khalanskiy [JB]
12/05/2024, 11:42 AMDaniel Pitts
12/05/2024, 2:58 PMDmitry Khalanskiy [JB]
12/05/2024, 3:27 PMDaniel Pitts
12/05/2024, 6:30 PM.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-datetime/0.6.1/23276007dcfffad437d5302c44e2e82c679c5c69/kotlinx-datetime-0.6.1-sources.jar!/commonMain/Instant.kt:383
. It has a "samples", but IntelliJ just shows that as "// Unresolved"Daniel Pitts
12/05/2024, 6:31 PMDmitry Khalanskiy [JB]
12/09/2024, 10:58 AMDaniel Pitts
12/09/2024, 3:29 PM