//把數字轉化成時間如下:
NSString*time = @"1329038338";
NSDateFormatter *formatter = [[[NSDateFormatter alloc] init]autorelease];
[formatter setDateStyle:NSDateFormatterMediumStyle];
[formatter setTimeStyle:NSDateFormatterShortStyle];
[formatter setDateFormat:@"YYYY-MM-dd HH:mm"];
NSDate*confromTimesp = [NSDate dateWithTimeIntervalSince1970:(NSTimeInterval)[time intValue]];
NSString*confromTimespStr = [formatter stringFromDate:confromTimesp];
timeString = confromTimespStr;
//把時間轉化成數字如下:
NSDate*date = [NSDatedate];
NSDateFormatter *formatter1 = [[[NSDateFormatteralloc] init]autorelease];
[formatter1 setDateStyle:NSDateFormatterMediumStyle];
[formatter1 setTimeStyle:NSDateFormatterShortStyle];
[formatter1 setDateFormat:@"YYYY-MM-dd HH:mm"];
NSString* timesp = [NSStringstringWithFormat:@"%lld",(longlong)[date timeIntervalSince1970]];
NSLog(@"++++++%@",timesp);