[En-Nut-Discussion] pnutfs and rtc

Harald Kipp harald.kipp at egnite.de
Wed Feb 22 12:06:38 CET 2006


For whatever reason the author decided to set the default
time zone for NY, although Oliver is German. :-)

   #include <time.h>
   _timezone = -1 * 60L * 60L;

should do the trick. _timezone is a global long integer, located in
crt/tzset.c

Harald

At 11:58 22.02.2006 +0100, you wrote:
>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.




More information about the En-Nut-Discussion mailing list