how can I get the system time?

hello,I want to get the exact time of the system.how can I get it?
also ,how can I change it through program?
thanks!

“jgp” <gpjin@nairc.ac.cn> wrote in message news:9p3sc5$8pu$1@inn.qnx.com

hello,I want to get the exact time of the system.how can I get it?

time()

also ,how can I change it through program?

http://qdn.qnx.com/support/docs/neutrino_2.11_en/lib_ref/c/clock_settime.htm
l

thanks!

jgp <gpjin@nairc.ac.cn> wrote:

hello,I want to get the exact time of the system.how can I get it?
also ,how can I change it through program?

clock_gettime(), clock_settime(); ClockAdjust() may also be of interest.

-David

QNX Training Services
dagibbs@qnx.com