What do you want to save?
Add Code snippet
New code examples
-
Kotlin 2021-08-30 04:15:02
get timestamp kotlin
Kotlin doesn't have any time handling classes of its own, so you just use Java's java.time. For an ISO-8601 timestamp (which is the preferred format): DateTimeFormatter.ISO_INSTANT.format(Instant.now()) That will return 2018-04-16T17:00:08.746Z. For your... Add solution