Numbers after decimal place in timeIntervalSince1970

let time = Date().timeIntervalSince1970

returns

1484904148.363985


1484904148 is the epoch time in seconds,


What is 363985 ? Must be millseconds in there somewhere....

Replies

timeIntervalSince1970
is a floating point count of the number of seconds since the UNIX epoch. The numbers after the decimal point aren’t milliseconds per se, but fractions of a second. You can get milliseconds by rounding the value to three decimal places, microseconds by rounding to 6, and so on.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"