So I have a unixtime datetime stamp. For arguments sake, lets say it’s now at 23:49:24 on 21/02/2011 (GMT). This would be:
1298332164
Now, is there anyway to remove the seconds component from this? I’m writing this in Obj-C so currently I have:
NSDate *todayNow = [NSDate date];
int unixtimeNow = [todayNow timeIntervalSince1970];
And would end up with:
1298332140
Thanks
What about 1298332164 / 60 * 60 ?