Responding to Alex D.
I ran the folowing code in the Interactive execution window four times, changing time zones between runs. The changes in local time shown are purely the result of the time zone changes (i.e. I did not adjust the clock at all).
/*******************************************************/
#include < utility.h >
#include < ansi_c.h >
static time_t calTime;
time (&calTime);
DebugPrintf ("Current calendar time is 0x%x\n", calTime);
/*******************************************************/
Here are the results:
1. Timezone set to Melbourne, Australia (UTC + 10h)
Ran interactive statements (Shift-F5) at 07:54 18 Apr 2005 local
Debug output:
Current calendar time is 0xc60d5979
2. Timezone set to Perth, Australia (UTC + 8h)
Ran interactive statements (Shift-F5) at 05:55 18 Apr 2005 local
Debug output:
Current calendar time is 0xc60d3d95
3. Timezone set to London, UK (UTC + 0h)
Note: UK is currently on daylight saving time.
Ran interactive statements (Shift-F5) at 22:56 17 Apr 2005 local
Debug output:
Current calendar time is 0xc60ccd50
4. Timezone set to Melbourne, Australia (UTC + 10h)
Ran interactive statements (Shift-F5) at 07:58 18 Apr 2005 local
Debug output:
Current calendar time is 0xc60d5a68
As you can see, the calendar time changes according to the time zone, which is wrong. It should increase with each call, by about 60 or 120 seconds.
Regards,
Colin.