iphone - Current and Updating time in iOS? -


i'm developing tool car driving saves gps data, accelerometer data , time later use.

acceleration least priority, though.

all need little code example can current system time printed updating clock in xcode because want save data fast , possible :>

thanks in advance answers :)

h4wkeye

to current system time use

nsdate* currentdate = [nsdate date];

and string representation of nsdate

- (nsstring *)description 

then use below

nsstring* dateinstring = [currentdate description]; 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -