Hello, World! I'm looking at the kotlin.time pack...
# announcements
b
Hello, World! I'm looking at the kotlin.time package. I see there's a
Duration
abstraction but what about a Moment (aka, Date or Time stamp, or a point in time)? Is that what
ClockMark
represents?
l
Most likely you want
LocalDate
and
LocalDateTime
from the Java stdlib
b
Ok. But I was looking for a pure Kotlin thing 🙂
l
I think
ClockMark
is the closest to what you're looking for. There's also
Long
and (inline?) class wrappers of course.
d
There is no pure Kotlin implementation of java.time types yet. But I think I read not too long ago that they are planned for cross-platform work.
b
let's hope 🤞