Skip to content

Instantly share code, notes, and snippets.

@sag333ar
Created November 15, 2013 09:52
Show Gist options
  • Save sag333ar/7481845 to your computer and use it in GitHub Desktop.
Save sag333ar/7481845 to your computer and use it in GitHub Desktop.
Get current date-time-stamp in UNIX format
- (NSString*)current_DateTimeStamp {
NSTimeInterval interval = [[NSDate date] timeIntervalSince1970];
NSNumber *number = [NSNumber numberWithDouble:interval];
return [number stringValue];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment