How to Set System Date using Watcom C function?

Hi,

I would like to set/change my qnx system’s current date from my program.
I am using Watcom C compile v10.6 for QNX. Does the compiler provide a
fucntion with the help of which system date can be set? How should I update
RTC date from my program?

I tried using system function for running date utility and rtc utility
from my program. That worked. But I want to know whether date set feature
can be implemented with any of Watcom C functions…or not…

Can anyone suggest a function?

Thanks,
Krupa

Take a look at clock_settime() and qnx_setclock().

Previously, Krupa wrote in qdn.public.qnx4:

Hi,

I would like to set/change my qnx system’s current date from my program.
I am using Watcom C compile v10.6 for QNX. Does the compiler provide a
fucntion with the help of which system date can be set? How should I update
RTC date from my program?

I tried using system function for running date utility and rtc utility
from my program. That worked. But I want to know whether date set feature
can be implemented with any of Watcom C functions…or not…

Can anyone suggest a function?

Thanks,
Krupa
\


Mitchell Schoenbrun --------- maschoen@pobox.com