I know this question has already been answered many times like:
but this shit isn't working and I have no idea why. This is what I already did:
//First try
int currentTime = [[NSDate date] timeIntervalSince1970] *-1000;
//Second try
int currentTime = [[NSDate date] timeIntervalSince1970];
NSInteger milliseconds = currentTime*1000;
//Third try
float currentTime = [[NSDate date] timeIntervalSince1970];
currentTime = currentTime * 1000;
//Fourth try
long currentTime = [[NSDate date] timeIntervalSince1970];
currentTime = currentTime * 1000;
But this always prints something totally different out like 260694392. When I just do
float currentTime = [[NSDate date] timeIntervalSince1970];
It gives me the correct time in seconds, but now I also want to multiply it by 1000 to get it as milliseconds