I'm converting some java.time.Instant code to use ...
# kotlinx-datetime
t
I'm converting some java.time.Instant code to use kotlinx.datetime.Instant. I have a fragment that uses the Java DateTimeFormatter formatters to print one using short/medium date/time formats:
Copy code
"No Name (created: ${DateTimeFormatter.ofLocalizedDateTime(FormatStyle.SHORT, FormatStyle.MEDIUM).format(oid.date.toJavaInstant())})"
oid.date returns an x instance, i threw in the toJavaInstant to use the DateTimeFormatter. I'm skimming through the docs, I haven't yet found if there's a kotlinx replacement for formatting/printing? Should I keep looking?
t
Thanks. It would seem that sticking with what I've got is the best approach for now