Created
June 1, 2011 21:37
-
-
Save haikusw/1003386 to your computer and use it in GitHub Desktop.
debugging aid for dates
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
#import <Foundation/Foundation.h> | |
@interface NSDateComponents (HSINSDateUtils) | |
- (void) logToConsole; | |
@end |
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
@implementation NSDateComponents (HSINSDateUtils) | |
- (void) logToConsole | |
{ | |
NSLog(@"DateComponents: %@. \n \tera: %d \n \tyear: %d \n \tmonth: %d \n \tday: %d \n \thour: %d \n \tminute: %d \n \tsecond: %d \n \tweek: %d \n \tweekday: %d \n \tweekdayOrdinal: %d \n", self, [self era], [self year], [self month], [self day], [self hour], [self minute], [self second], [self week], [self weekday], [self weekdayOrdinal] ); | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment