- (NSTimeInterval)getUnixTimeStamp
{
NSDateComponents *comps = [[NSCalendar currentCalendar]
components:NSDayCalendarUnit | NSYearCalendarUnit | NSMonthCalendarUnit | NSHourCalendarUnit | NSMinuteCalendarUnit | NSSecondCalendarUnit
fromDate:[NSDate date]];

return [[[NSCalendar currentCalendar] dateFromComponents:comps] timeIntervalSince1970];
}