Possible Solution To More Messages Challenge


#1

Here is another possible solution to another challenge.

[code]#import <Foundation/Foundation.h>

int main(int argc, const char * argv[])
{

@autoreleasepool {
    
    NSTimeZone *timeZone = [NSTimeZone systemTimeZone];
    BOOL dayLightSavings = [timeZone isDaylightSavingTime];
    if (dayLightSavings == YES) {
        NSLog(@"It is currently daylight savings time.");
    }else {
        NSLog(@"It is not currently daylight savings time.");
    }
}
return 0;

}[/code]