How can i convert time = 30000L to "30:00"using ko...
# multiplatform
f
How can i convert time = 30000L to "30:00"using kotlinxdatetime?
j
it's unclear what
30000L
is, it doesn't look like any time unit if result is 30mins (or whatever 30:00 is meant to be)... so you have to do it manually
👍 1
f
At the end it did manually
h
How about
val y = (30_000L).toDuration(DurationUnit.MILLISECONDS)
?
f
Looks like a good idea.