I want to have the integer value of the following floating point value:
var floatingPointValue = NSDate().timeIntervalSince1970 * 1000
I don't care if the integer value of this floating point number is actually an integer or a string.
Int64
is large enough to hold a time interval of some million
years measured in milliseconds:
let milliSeconds = Int64(someDate.timeIntervalSince1970 * 1000)
let milliSecondsString = String(milliSeconds)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With