I am trying to convert the string:
let time = "7:30"
to integers:
let hour : Int = 7
let minutes : Int = 30
I am currently looping through the string:
for char in time.characters {
}
But I cannot figure out how to convert a char to an int. Any help would be greatly appreciated.