Type converter from kotlinx.datetime.Instant to java.time.Instant is not found
See original GitHub issueGiven I have a csv file with the following columns and values:
date,description,notes
2022-07-07T19:53:15.009Z,Some description, Some notes
And kotlin data class:
import java.time.Instant
data class Record(
val date: Instant,
val description: String,
val notes: String,
)
It throws an error:
org.jetbrains.kotlinx.dataframe.exceptions.TypeConverterNotFoundException: Type converter from kotlinx.datetime.Instant to java.time.Instant is not found
When I read the csv:
DataFrame.readCSV("data.csv").convertTo<Record>()
How can I make it working if I don’t want to use kotlinx.datetime?
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
Kotlin/kotlinx-datetime: KotlinX multiplatform date/time library
LocalTime type represents local time without date. You can obtain it from Instant by converting it to LocalDateTime and taking its time property....
Read more >Kotlin/java - How to convert a date time string to Instant?
You can combine the date and time strings to create a date-time string in ISO 8601 format which you can parse into LocalDateTime...
Read more >Introducing kotlinx-datetime Ilya Gorbunov - JetBrains
kotlinx.datetime. Types to represent temporals. ○ Flavors of time. ○ Instant ↔ LocalDateTime conversions. ○ When to use which type ...
Read more >DateTimeFormatter - Android Developers
The main date-time classes provide two methods - one for formatting, format(DateTimeFormatter formatter) , and one for parsing, parse(CharSequence text, ...
Read more >Date Formatting With Kotlin Multiplatform - Better Programming
Personally, every time I have to convert a date to a certain format, ... Now let's use Instant and LocalDateTime to find the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, I think that mentioning the issue # in the commit message would be sufficient. Thanks. And sorry for bringing a topic not related to the issue.
Hm, i didn’t think about it. But it seems useful. Would mentioning issue number (that is 126) in a commit message be enough to connect it?