[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: DateTime lost between reboots.
You set the real time clock (rtc).
fd = open("/dev/rtc", O_RDONLY);
and then you fill in these:
struct rtc_time rtim;
ioctl(fd, RTC_SET_TIME, &rtim);
There was an app that Axis provided that did this but I can't remember what its
Randy Graham wrote:
> When I programmatically set the date/time on my devboard_82 using
> settimeofday() and reboot, the date/time resets to Apr 28 2000.
> How do I make the time I've set using settimeofday() 'stick' ?