title: How to convert min to hours in swift3?
body: <p>This is my JSON data</p>
  
  <pre><code>{
      "service_facility_id": 1,
      "service_id": 4,
      "facility_name": "Fitting",
      "charge_per_min": 40,
      "charge_per_km": 50
  },
  {
      "service_facility_id": 10,
      "service_id": 4,
      "facility_name": "Health Care",
      "charge_per_min": 100,
      "charge_per_km": 0
  }
  </code></pre>
  
  <p>Currently i'm using Get method to print specific JSON output in X Code. So i managed to Minute(<code>charge_per_min</code>) value . But I want to display in a label in HH(Hours) format, so how to convert it minute to hours formate and disply into a uilabel..
  The code as below.</p>
  
  <pre><code>if let con = country["charge_per_km"] as? Int {              
        print("+++++\(con) +++ ")
        self.chargPerKm.append(con)
  
        print(self.chargPerKm)
  
        let encodedArray : NSData = NSKeyedArchiver.archivedData(withRootObject:self.chargPerKm) as NSData
        //Saving
        let defaults = UserDefaults.standard
        defaults.setValue(encodedArray, forKey:"charge_per_km")
        print("\(UserDefaults.standard.value(forKey: "charge_per_km")!)")
        defaults.synchronize()
        print(defaults)                   
  }
  </code></pre>
  
  <p>any one help me.</p>