[En-Nut-Discussion] pnutfs and rtc

Peter Sodermanns peter.sodermanns at aixcon.de
Wed Feb 22 11:58:03 CET 2006


Harald Kipp schrieb:

> You can use stime() to set the system time.
> http://www.minix3.org/manpages/man2/time.2.html


Ok, it works.
But why do I have to correct for a difference of 5 hours?
Between Greenwich Mean Time and my MEZ here I would have expected 1 hour.

My code:
	rc = ISL1208GetClock(time_struct);
	gv->my_time = mktime(time_struct);
	gv->my_time = gv->my_time - (5*3600);
	stime(&gv->my_time);

This delivers the same time in my display (where time_struct->tm_sec 
etc. is used) and the file system.


Regards
             Peter


More information about the En-Nut-Discussion mailing list