Created
July 1, 2009 08:54
-
-
Save gabriel/138689 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
NSDateFormatter *rfc1123DateFormatter = [[[NSDateFormatter alloc] init] autorelease]; | |
[rfc1123DateFormatter setFormatterBehavior:NSDateFormatterBehavior10_4]; | |
[rfc1123DateFormatter setLocale:[[[NSLocale alloc] initWithLocaleIdentifier:@"en_US"] autorelease]]; | |
[rfc1123DateFormatter setTimeZone:[NSTimeZone timeZoneForSecondsFromGMT:0]]; | |
[rfc1123DateFormatter setDateFormat:@"EEE, dd MMM yyyy HH:mm:ss zzz"]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment