Created
April 1, 2015 16:12
-
-
Save Gernot/37e9b8e52061852cd7be to your computer and use it in GitHub Desktop.
This file contains 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
public struct Time { | |
init(date: NSDate) { | |
NSCalendar.currentCalendar().getHour(&hours, minute: &minutes, second: &seconds, nanosecond: &nanoseconds, fromDate: date) | |
} | |
private(set) public var hours: Int = 0 | |
private(set) public var minutes: Int = 0 | |
private(set) public var seconds: Int = 0 | |
private(set) public var nanoseconds: Int = 0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment