Created
December 5, 2016 13:13
-
-
Save ethanmpeterson/80956e0b7a9a9b993c0f89f379617adc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func timeDifference(firstHour : Int, firstMinute : Int, secondHour : Int, secondMinute : Int) -> Int { | |
| return abs(((firstHour * 60) + firstMinute) - ((secondHour * 60) + secondMinute)) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment