Guest User

Untitled

a guest
Oct 17th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. func convertToTime(_ value: Int) -> String {
  2. print(value) // 902
  3. var text = String(format: "%02d", value)
  4. text.insert(":", at: text.index(text.startIndex, offsetBy: +2))
  5. return text
  6. }
Add Comment
Please, Sign In to add comment