I have a question about the TZ environment variable. I have the timezone configuration string as
CST+6CDT,M3.2.0/02:00:00,M11.1.0/02:00:00.
From the TZ string, I need to get the number of days for M3.2.0 and M11.1.0 for the current year. Also I need to calculate the starting and ending of daylight savings in UTC secs (starting from 00:00:00 on January 1, 1970).
I can get the current year using time function.
Code in C language. Any ideas please?