1 Reply
      Latest reply on Jan 26, 2017 3:26 AM by eskimo
      bandjepaisa2 Level 1 Level 1 (0 points)

        let time = Date().timeIntervalSince1970




        1484904148 is the epoch time in seconds,


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

        • Re: Numbers after decimal place in timeIntervalSince1970
          eskimo Apple Staff Apple Staff (13,925 points)

          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"