Return to Snippet

Revision: 22734
at January 20, 2010 12:53 by BenClayton


Initial Code
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat:@"HH:mm:ss"];
	
NSDate *now = [[NSDate alloc] init];

NSString* timeString = [dateFormat stringFromDate:now];	
[dateFormat release];
[now release];

Initial URL

                                

Initial Description

                                

Initial Title
Format the current time as an NSString

Initial Tags
iphone

Initial Language
Objective C