I have this code that works well, but I donβt know if this is the correct way to call stringWithFormat, because in the documentation% d for int and I pass long:
long seconds = (long)[[NSDate date]timeIntervalSince1970]; NSString *unixTimestamp = [NSString stringWithFormat:@"date=%d", seconds];
Thanks in advance!
source share