how to know the timezone using C ...

i want something which will work both on Linux and Windows...

for example in case of India...i wish to know using the program that the timezone is GMT+ 5:30

i found a variable called _timezone which works in case of Windows but not on Linux.