Skip to content

Instantly share code, notes, and snippets.

@jlcampana
Created February 27, 2013 11:09
Show Gist options
  • Save jlcampana/5047167 to your computer and use it in GitHub Desktop.
Save jlcampana/5047167 to your computer and use it in GitHub Desktop.
Unix timestamp
-(long long int)getUnixTimeStamp:(NSDate *)fecha
{
long long int ti = ( (long long int)[fecha timeIntervalSince1970]);
ti *= 1000;
return ti;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment