I know this may be very simple but I am having difficulty using the tm_isdst flag inside the localtime function inside time.h
When calling the localtime function, a flag is set. The flag is tm_isdst.
The flag is 1 if daylight savings time is in effect and 0 when it is not.
I understand that part, but when I attempt to use it, the compiler tells me it is undeclared. for example:
if(tm_isdst == 1)
hour = hour + 1; // meaning I want to add an hour to the time if the flag is set
Am I implementing this correctly?