question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Type converter from kotlinx.datetime.Instant to java.time.Instant is not found

See original GitHub issue

Given 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:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
gilbertojrequenacommented, Jul 8, 2022

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.

1reaction
koperagencommented, Jul 8, 2022

Hey @koperagen I have a question, why the PRs or commits are not related to their issues?

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found