In one of my application, I get lot of date values from different machines. I wanted to know the timezone information of those machines.
Is there any C function to fetch that information like below ?
-- Asia/Calcutta
--- Africa/Algiers
--- Africa/Addis_Ababa
I found functions like localtime
and gmttime
which I can use to get the difference between UTC time and local time but is there any way to get the timezone region name ?