Andrew Ibbetson on December 6th, 2011: Your comment is awaiting moderation.
I’m currently using a combination of boland C++, ARCOM pc104 card running DOS 6.22.
Within my program i have the following:-
putenv(“TZ=PST8 PD7″);
tzset();
i have also tried
putenv(“TZ=PST8 PD7,M4.1.0/2,M11.1.0/2″);
tzset();
In each case i use the localtime() function to extract the time data and display, this process seems to work fine for the zone time differrence e.g 8 hours, however the daylight saving is completely ignored. tm_isddt does indicate when daylight is in effect although this always happens at same UK start and stop time irrespective of any changes i make.
question: How do i get the time to change according to specified daylight saving start, stop dates and daylight saving time differences.
Many thanks in anticipation.
Andy
I’m currently using a combination of boland C++, ARCOM pc104 card running DOS 6.22.
Within my program i have the following:-
putenv(“TZ=PST8 PD7″);
tzset();
i have also tried
putenv(“TZ=PST8 PD7,M4.1.0/2,M11.1.0/2″);
tzset();
In each case i use the localtime() function to extract the time data and display, this process seems to work fine for the zone time differrence e.g 8 hours, however the daylight saving is completely ignored. tm_isddt does indicate when daylight is in effect although this always happens at same UK start and stop time irrespective of any changes i make.
question: How do i get the time to change according to specified daylight saving start, stop dates and daylight saving time differences.
Many thanks in anticipation.
Andy