|
Back
Midas
Rome
Roody
Rootana
|
Midas DAQ System |
Not logged in |
|
|
14 Sep 2013, Konstantin Olchanski, Info, mktime() and daylight savings time
|
24 Sep 2013, Stefan Ritt, Info, mktime() and daylight savings time
|
24 Sep 2013, Konstantin Olchanski, Info, mktime() and daylight savings time
|
24 Sep 2013, Stefan Ritt, Info, mktime() and daylight savings time
|
24 Sep 2013, Stefan Ritt, Info, mktime() and daylight savings time
|
|
Message ID: 912
Entry time: 24 Sep 2013
In reply to: 911
Reply to this: 913
|
Author: |
Stefan Ritt |
Topic: |
Info |
Subject: |
mktime() and daylight savings time |
|
|
> > I vaguely remember that I had a similar problem with ELOG. The solution was to call tzset() at the beginning of the program. The man page says that
> > this function is called automatically by programs using time zones, but apparently it is not. Can you try that? There is also the TZ environment
> > variable and /etc/localtime. I never understood the details, but playing with these things can influence mktime() and localtime().
>
> I confirm that the timezone is set correctly - I do get the correct time eventually - so there is no missing call to tzet().
>
> K.O.
tzset() not only sets the time zone, but also DST. |