amazon s3 - Need to format and create an NSString -


I need to create an NSString which is equal, current year-month-day-hour (24) -minnet-seconds -Milisecand .filetype

This will plug in this NSstring

  NSString * filename = [[NSBundle main bundle] pathForResource: [NSString stringWithFormat: @ "image% d", ImageNo] ofType: @ "png"];  

try it

  NSDateFormatter * df = [ NSDateFormatter new]; Df.dateFormat = @ "yyyy-MM-dd-HH-mm-ss-S"; NSLog (@ "% @", [DF StringFormat: [Date of NSDT]];  

Comments

Popular posts from this blog

scala - Play Framework - how to bind form to a session field -

Django Celery - running scheduled tasks -

perl - 'Unquoted string ".." may clash with future reserved word' but only when package is used -