I'm trying to find out how I can convert timestamp
to datetime
in Kotlin, this is very simple in Java but I cant find any equivalent of it in Kotlin.
For example: epoch timestamp (seconds since 1970-01-01) 1510500494
==> DateTime object 2017-11-12 18:28:14
.
Is there any solution for this in Kotlin or do I have to use Java syntax in Kotlin? Please give me a simple sample to show how I can resolve this problem.
this link is not an answer to my question