views:

197

answers:

1

Hi everyone,

how can I get timestamp as NSNumber? I only need something like this: 1232885280

Thanks

+6  A: 
NSTimeInterval timeStamp = [[NSDate date] timeIntervalSince1970];
// NSTimeInterval is defined as double
NSNumber *timeStampObj = [NSNumber numberWithDouble: timeStamp];
Vladimir
Spasibo Vladimir))) It's exactly what I need)))
Burjua