Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (13 sloc) 0.569 kB
#import "ISO8601DateFormatter.h"
int main(int argc, const char **argv) {
NSAutoreleasePool *pool = [NSAutoreleasePool new];
ISO8601DateFormatter *formatter = [[[ISO8601DateFormatter alloc] init] autorelease];
formatter.format = ISO8601DateFormatWeek;
while(--argc) {
NSString *arg = [NSString stringWithUTF8String:*++argv];
NSTimeZone *timeZone = nil;
printf("%s\n", [[NSString stringWithFormat:@"%@:\t%@", arg, [formatter stringFromDate:[formatter dateFromString:arg timeZone:&timeZone] timeZone:timeZone]] UTF8String]);
}
[pool release];
return 0;
}
Jump to Line
Something went wrong with that request. Please try again.