Yan Pujante
03/05/2021, 5:49 PMkotlin.time.Duration
concept in my code and see that I can convert to String
pretty easily. I am not seeing a way to go the other way around, which makes it quite hard to use it as a field in a form or to save/retrieve in preferences... Am I missing something?Youssef Shoaib [MOD]
03/05/2021, 6:03 PMtoLongMilliseconds()
, save that, and then when you retrieve it do a .milliseconds
on that long value to retrieve it as a milliseconds value.Yan Pujante
03/05/2021, 6:06 PMYoussef Shoaib [MOD]
03/05/2021, 6:30 PMtoString
function? hmmm one second I'm gonna take a look at that source code and see what can be doneYan Pujante
03/05/2021, 6:36 PMilya.gorbunov
03/05/2021, 7:12 PMDuration.parse
function in mind, so I've opened https://youtrack.jetbrains.com/issue/KT-45325 to track this feature request.Yan Pujante
03/05/2021, 7:13 PM