Created
August 29, 2014 18:54
-
-
Save lfaoro/b1334514b5723c0a7337 to your computer and use it in GitHub Desktop.
Challenge complete
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
NSDateComponents *comps = [[NSDateComponents alloc] init]; | |
[comps setDay:20]; | |
[comps setMonth:01]; | |
[comps setYear:1985]; | |
//[comps setTimeZone:<#(NSTimeZone *)#>]; | |
NSDate *now = [NSDate date]; | |
NSDate *birthday = [NSDate comps]; | |
double difference = [birthday timeIntervalSinceDate:now]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment