https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
s

spierce7

09/28/2020, 12:11 AM
Does the kotlin stdlib provide a way to get the current timestamp, or am I imagining that that was added?
not stdlib but maybe a heavyhanded solution to what you want
b

Big Chungus

09/28/2020, 8:41 AM
Deffinitely not in stdlib (not at common level, at least)
y

yogi

09/28/2020, 11:16 AM
It's amazing how 2 people halfway across the world have the same issue at the same time - regarding time 🙂 Ran into the same today . Got around it by having my common method rely on an input parameter. The calling code can supply that.
b

Big Chungus

09/29/2020, 1:02 PM
Easiest workaround is to just have an expect function that's wired to platform specific APIs
No need for a parameter
y

yogi

09/29/2020, 1:26 PM
Oh yes ! That is so much better. Thanks :)
3 Views