title: I'm trying to have my app pop viewControllers when it reaches 9:00 UTC time every day
body: <p>I'm trying have my app pop viewControllers when it reaches 9:00 UTC time every day. I don't want it to use local time as that can change in different regions, and can be altered. I thought of using a server time, but I'm having issues getting that solution to work. I got an epoch timestamp and converted it to a Date. </p>
  
  <pre><code>let ref = FIRDatabase.database().reference()   
  let timestamp = FIRServerValue.timestamp()
    ref.setValue(timestamp)
  
      ref.observe(.value, with: {
          snap in
          if let t = snap.value as? TimeInterval {
              // Cast the value to an NSTimeInterval
              // and divide by 1000 to get seconds.
              print("this is the time in seconds \(t)")
              let date = Date(timeIntervalSince1970: t)
              print("this is the time \(Date(timeIntervalSince1970: t/1000))")
  </code></pre>
  
  <p>It prints out <code>this is the time 2016-10-10 18:40:21 +0000</code>.</p>
  
  <p>The problem is figuring out how to get only the hour minutes and seconds out of this so I can compare the time dates.        </p>