Created
June 24, 2013 11:56
-
-
Save anonymous/5849554 to your computer and use it in GitHub Desktop.
ISO 8601 UTC timestamp with milliseconds in Objective-C.
This file contains hidden or 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 *dateFormatter = [NSDateFormatter new]; | |
dateFormatter.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US_POSIX"]; | |
dateFormatter.dateFormat = @"YYYY-MM-DD'T'HH:mm:ss.SSS'Z'"; | |
dateFormatter.timeZone = [NSTimeZone timeZoneForSecondsFromGMT:0]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment