Home:ALL Converter>kotlin-multiplatform timestamp to time in milliseconds (unix time)

kotlin-multiplatform timestamp to time in milliseconds (unix time)

Ask Time:2020-04-28T02:03:57         Author:Pavel

Json Formatter

I'm using kotlin-multiplatform for iOS and Android targets.

I'm deserializing json string with timestamp inside: 2020-01-16T11:33:34.553Z

I would like to convert this timestamp to time in milliseconds (unix time). Is it possible to do this using kotlin native libraries?

I'm using kotlin multiplatform 1.3.72.

Author:Pavel,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/61465432/kotlin-multiplatform-timestamp-to-time-in-milliseconds-unix-time
yy