在iOS中如何在java中获取类似System.currentTimeMillis()的当前时间?

Tau*_*uta 9 ios swift

在Java中我们使用System.currentTimeMillis()来获取时间,在iOS中是否有类似的方法?

har*_*man 15

NSDate().timeIntervalSince1970 * 1000
Run Code Online (Sandbox Code Playgroud)