Why there is no `NSDate(timeIntervalSince1970:)` i...
# kotlin-native
j
Why there is no
NSDate(timeIntervalSince1970:)
in kotlin? 😞
s
Copy code
NSDate().timeIntervalSince1970.toLong() * 1000
I'm using this as an equivalent to
Copy code
System.currentTimeMillis()
in my project and it works.
j
hmm.. I need to convert timestamp to NSDate object
j
There is
NSDate.dateWithTimeIntervalSince1970
, maybe it is the same
j
that looks like it may be it! thanks you!